Part Number Hot Search : 
L6423AT DD312 2N651 UM6861 A4032 18000 R1045 PST8425
Product Description
Full Text Search
 

To Download HT46CU26 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ht46ru26/HT46CU26 a / d+uart ?? ?? ?? ?? rev. 1.00 1 2008-06-12 ????? ????? ????? ????? ?? ? ??? ?? ?????????? 160 ?????? ? mcu ??????????????????? ??????????????????? ???? ? ?? ?? ?? ? ?????? holtek ? ht-ide ht-ice marvel speech music micro adlib micro magic voice green dialer pagerpro q-voice turbo voice easyvoice handywriter ??? ?????? ? ?? ? copyright ? 2008 by holtek semiconductor inc. ?????????????? ????????????????? ???????????????? ???????????????? http://www.holtek.com.tw; http://www.holtek.com.cn
ht46ru26/HT46CU26 rev. 1.00 2 2008-06-12 ? ? ? ? ? f aqs ? h a 0003s ht48 & ht46 mcu ht93lc46 ? h a 0049s ht1380 ? h a 0052s ht46r47 ???? h a 0075s mcu ???? ? ? f sys = 4mhz 2.2v~5.5v f sys =8mhz 3.3v~5.5v ? 48 ? / ? / ??? ? 1 8 ? / ? 2 16 ??? / ? 32k 16 ?4 ? 76 8 8 ?4 ? rc ? ?? ? pfd ?? ? halt ????? ? v dd =5v ???? 8mhz ?? ? 0.5 s ? 16 ?? ? 8 ? 1 2 ?? a/d ? ? 4 ? 8 / ? pwm ? 8 ?? rt c ? ?? / ( uart) ? i 2 c (slave ? ? ) ? spi ? ? ? ? ? 63 ? ? ? ??? 1 2 ? ? ?? ? 48/56-pin ssop ? h t46ru26/HT46CU26 8 ??????? a/d ??? ?? ?????????? holtek ?? ??????????????? ???? uart ? spi i 2 c ???????? pc ??? ?? i/o ???????? a/d ?? i 2 c ?? uart ???????????? a/d ?? ?????? HT46CU26 ???
ht46ru26/HT46CU26 rev. 1.00 3 2008-06-12 ? r ? ??? otp ????????? ???????????????? c ?????????????? ????? otp ????????????????? ??? ????????? otp ???p?? ???? ? ? ? ? o t p p r o g r a m m e m o r y d a t a m e m o r y w a t c h d o g t i m e r w a t c h d o g t i m e r o s c i l l a t o r 8 - b i t r i s c m c u c o r e r e s e t c i r c u i t i n t e r r u p t c o n t r o l l e r r c / c r y s t a l s y s t e m o s c i l l a t o r l o w v o l t a g e r e s e t a / d c o n v e r t e r p w m g e n e r a t o r p r o g r a m m a b l e f r e q u e n c y g e n e r a t o r t i m e r s u a r t s p i i 2 c o t p p r o g r a m m i n g c i r c u i t r y s t a c k i / o p o r t s ? ???? ot p ? mask ??? device programming circuity
ht46ru26/HT46CU26 rev. 1.00 4 2008-06-12 ? ? ? ? h t 4 6 r u 2 6 / h t 4 6 c u 2 6 4 8 s s o p - a 4 8 4 7 4 6 4 5 4 4 4 3 4 2 4 1 4 0 3 9 3 8 3 7 3 6 3 5 3 4 3 3 3 2 3 1 3 0 2 9 2 8 2 7 2 6 2 5 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 p b 5 / a n 5 p b 4 / a n 4 p a 3 / p f d p a 2 p a 1 p a 0 p b 3 / a n 3 p b 2 / a n 2 p b 1 / a n 1 p b 0 / a n 0 t m r 2 p f 3 / s d o p f 2 / s d i p f 1 / s c k p d 7 p d 6 p d 5 p d 4 v s s p f 0 / s c s t m r 0 p c 0 / t x p c 1 / r x p c 2 p b 6 / a n 6 p b 7 / a n 7 p a 4 p a 5 / i n t p a 6 / s d a p a 7 / s c l p f 4 p f 5 p f 6 p f 7 o s c 2 o s c 1 v d d r e s t m r 1 p d 3 / p w m 3 p d 2 / p w m 2 p d 1 / p w m 1 p d 0 / p w m 0 p c 7 / o s c 4 p c 6 / o s c 3 p c 5 p c 4 p c 3 h t 4 6 r u 2 6 / h t 4 6 c u 2 6 5 6 s s o p - a 5 6 5 5 5 4 5 3 5 2 5 1 5 0 4 9 4 8 4 7 4 6 4 5 4 4 4 3 4 2 4 1 4 0 3 9 3 8 3 7 3 6 3 5 3 4 3 3 3 2 3 1 3 0 2 9 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 p b 5 / a n 5 p b 4 / a n 4 p a 3 / p f d p a 2 p a 1 p a 0 p b 3 / a n 3 p b 2 / a n 2 p b 1 / a n 1 p b 0 / a n 0 t m r 2 p f 3 / s d o p f 2 / s d i p f 1 / s c k p d 7 p d 6 p d 5 p d 4 v s s p f 0 / s c s t m r 0 p c 0 / t x p c 1 / r x p c 2 p g 0 p g 1 p g 2 p g 3 p b 6 / a n 6 p b 7 / a n 7 p a 4 p a 5 / i n t p a 6 / s d a p a 7 / s c l p f 4 p f 5 p f 6 p f 7 o s c 2 o s c 1 v d d r e s t m r 1 p d 3 / p w m 3 p d 2 / p w m 2 p d 1 / p w m 1 p d 0 / p w m 0 p c 7 / o s c 4 p c 6 / o s c 3 p c 5 p c 4 p c 3 p g 7 p g 6 p g 5 p g 4
ht46ru26/HT46CU26 rev. 1.00 5 2008-06-12 ? ? ? ? / ?? ? ??? ?? ? ?? ? pa0~pa2 p a 3/pfd pa4 pa5/ int p a 6/sda pa7/scl / pfd i 2 c 8 ? / ?????? ?? cmos ?? ( ?? ) ??? pfd int pa3 pa 5 ??? i 2 c ? pa6 pa7 ??? pb0/an0~ pb 7 /an7 / 8 ? / ?? cmos ( ?? ) ?? ? a/d ? ? pb ?? a/d ( ) / ??? pc0/tx pc 1 /rx pc2~pc5 pc6/osc3 pc7/osc4 / o s c3/osc4 8 ? / ?? cmos ?????? ?? tx rx ? pc0 pc1 ??? uart ? pc0 pc1 ??? rtc osc3 osc4 ? pc6 pc7 ? osc ???? rtc ?? ??? 32768hz osc3 osc4 pd0/pwm0 pd1/pwm1 pd2/pwm2 pd3/pwm3 pd4~pd7 / pw m 8 ? / ?? cmos ?????? ?? pwm0/pwm1/pwm2/pwm3 ? pd0/pd1/pd2/pd3 ? pwm ?? pf0/ scs pf 1 /sck pf2/sdi pf3/sdo pf0~pf7 / si o 8 ? / ?? cmos ( ??? ) ?? ? spi ? scs sc k s do sdi ? pf0~pf3 pg0~pg7 / 8 ? / ?? cmos ( ??? ) ?? ? tmr0 ? / 0 ?? ( ) tmr1 ? / 1 ?? ( ) tmr2 ? / 2 ?? ( ) res ? ???? osc1 o s c2 rc osc1 osc2 rc ( ??? ) ? ???? rc ??? osc2 ????? ? vss ??? vdd ? ???? pg 48pin ??
ht46ru26/HT46CU26 rev. 1.00 6 2008-06-12 ? ? ? ? ? ?? ????.v ss -0.3v~v ss +6.0v ? ????.-50 ~125 ?? ????.v ss -0.3v~v dd +0.3v ? ????.-40 ~85 i ol ? ????. ???. ???.150ma i oh ? ????. ?. -100ma ? ???. ???. ???.500mw ????? ???????????? ??1????? ? ? ? ? ta=25 v dd ? ? f s y s =4mhz 2.2 5.5 v v d d ? f sys =8mhz 3.3 5.5 v 3v 1 2 ma i d d 1 ( ?? rc ) 5v ? , f s ys =4mhz adc ? ,uart ? 2 . 5 5 ma 3v 1 . 5 3 ma i d d 2 ( ?? rc ) 5v ? , f s ys =4mhz adc ? ,uart 3 6 ma i d d 3 ( ?? rc ) 5v ? , f s ys =8mhz adc ? ,uart ? 4 8 ma i d d 4 ( ?? rc ) 5v ? , f s ys =8mhz adc ? ,uart 5 10 ma 3v 0 . 3 0.6 ma i d d 5 (f s rtc ) 5v ? a d c ? ,uart ? 0.6 1 ma 3v 2 5 a i s t b1 ? ( f s wdt ) 5v ???? h a lt 6 10 a 3v 2 . 5 5 a i s t b2 ? ( f s rtc ) 5v ???? h a lt 10 20 a 3v 1 a i s t b3 ? ( ?? ) 5v ???? h a lt uart ? 2 a v i l 1 i/o tmr int ? 0 0.3 v dd v v i h 1 i/o tmr int ? 0.7v dd v d d v v i l 2 res ??? 0 0 .4v dd v v i h 2 res ??? 0 . 9v dd v d d v ??? 2 .1v 1.98 2.10 2.22 v ? ?? 3.15v 2.98 3.15 3.32 v v l v r ?? ??? 4.2v 3.98 4.20 4.42 v 3v v o l = 0.1v dd 4 8 ma i o l / ? 5v v o l = 0.1v dd 10 20 ma 3v v o h = 0.9v dd -2 -4 ma i o h / ? 5v v o h = 0.9v dd -5 -10 ma 3v 2 0 60 100 k r ph 5v 10 30 50 k 3v 0. 5 1 ma i ad c adc ?? 5v 1. 5 3 ma dnl ad c ?? 5v t ad = 1 s 2 lsb inl ad c ? 5v t ad = 1 s 2.5 4 lsb
ht46ru26/HT46CU26 rev. 1.00 7 2008-06-12 ta=25 v dd ? ? 2 . 2v~5.5v 400 4000 khz f s y s ??? 3.3v~5.5v 400 8000 khz 2 . 2v~5.5v 0 4000 khz f t i mer ?? (tmr) 3 . 3v~5.5v 0 8000 khz 3v 4 5 90 180 s t w d tosc ? 5 v 32 65 130 s t r e s ??? 1 s t s s t ???? halt ?? 1 0 24 *t sys t l v r ??? 0.25 1 2 ms t i n t 1 s t a d a /d ? 1 s t a d c a/d ?? 80 t ad t a d cs a/d ? 32 t ad t i i c i 2 c ? 64 *t sys ? * t s ys =1/f sys
ht46ru26/HT46CU26 rev. 1.00 8 2008-06-12 ?? ?? ?? ?? ? ???? hol tek ????? risc ??? ??????????????????? ?????? 8 alu ??? ????????????? alu ??? ???????????????????? ???? i/o a/d ???????? ???????????????? ???? ? ??? ???? ???? ???? / ? rc ??? t1~t4 ??????? t1 ???????? t2~t4 ????? t1~t4 ?????????????????? ?????????? ?????????? ? rc ? osc2 ?? t1 ?????? t1 ? f sys /4 ??? 1 3 / ???? ?????????????? ???????????????? ?????????? f e t c h i n s t . ( p c ) e x e c u t e i n s t . ( p c - 1 ) f e t c h i n s t . ( p c + 1 ) e x e c u t e i n s t . ( p c ) f e t c h i n s t . ( p c + 2 ) e x e c u t e i n s t . ( p c + 1 ) p c p c + 1 p c + 2 o s c i l l a t o r c l o c k ( s y s t e m c l o c k ) p h a s e c l o c k t 1 p r o g r a m c o u n t e r p h a s e c l o c k t 2 p h a s e c l o c k t 3 p h a s e c l o c k t 4 p i p e l i n i n g ? ?? ?? ?? ? f e t c h i n s t . 1 e x e c u t e i n s t . 1 f e t c h i n s t . 2 f l u s h p i p e l i n e 1 2 3 4 5 6 d e l a y : m o v a , [ 1 2 h ] c a l l d e l a y c p l [ 1 2 h ] : : n o p e x e c u t e i n s t . 2 f e t c h i n s t . 3 f e t c h i n s t . 6 e x e c u t e i n s t . 6 f e t c h i n s t . 7 ? ? ?? ???? ???
ht46ru26/HT46CU26 rev. 1.00 9 2008-06-12 pc ????????? jmp call ?? ?????????????? 8 ??? pcl ????? ?????????????? ?????????????? ???????? ????? pcl ?????? ????????????????? ???? 256 ??????? ????? ????? 5 ? 6 ?? ???? 1 3 1 2 8 7 0 p r o g r a m c o u n t e r b p . 5 b a n k p o i n t e r ( b p ) b p . 6 1 4 ?? ???? ?? * 1 4 *13 * 12 *11 *10 *9 *8 *7 *6 *5 *4 *3 *2 *1 *0 ? 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ? a /d ? spi ???? ? 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 ? / 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 ? / 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 uart 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 i 2 c ? s pi ? ? ? 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 ? 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 ? pc + 2 ? bank ? pc l * 14 *13 *12 *11 *10 *9 *8 @7 @6 @5 @4 @3 @2 @1 @0 ?? bp.6 bp.5 #12 #11 #10 #9 #8 #7 #6 #5 #4 #3 #2 #1 #0 ??? s 1 4 s13 s12 s11 s10 s9 s8 s7 s6 s5 s4 s3 s2 s1 s0 ? ????? pc14~pc8 ? @7~@0 pcl ? bp.5,bp.6 ? #12~#0 ?? s14~s0 ??
ht46ru26/HT46CU26 rev. 1.00 1 0 2008-06-12 ? ? ???? ?? stack ????? pc ? mcu 16 ????? ????????????? sp ?? ??????? (pc) ????? ?? ( ?? ret reti) ?????? ???????? ?????????? ??? ret reti ?????????? ?? call ?????????? ????????? p r o g r a m c o u n t e r s t a c k l e v e l 1 s t a c k l e v e l 2 s t a c k l e v e l 3 s t a c k l e v e l 1 6 p r o g r a m m e m o r y t o p o f s t a c k s t a c k p o i n t e r b o t t o m o f s t a c k ?? ?? ?? ?? alu ???????????? alu ?? ??????????? alu ????????????????? alu ?? ? add addm adc adcm sub subm sbc sbcm daa ?? and or xor andm orm xorm cpl cpla ? rr a rr rrca rrc rla rl rlca rlc ?? inca inc deca dec ?? jmp sz sza snz siz sdz siza sdza call ret reti ?? ht46ru26/HT46CU26 ??? otp ????????????? otp ????? ??????????? otp ??? ? ?? ? 16 ? 32k ???? ???????????? 4 ? 8k ?u?? bp ??? bp ??? ??
ht46ru26/HT46CU26 rev. 1.00 1 1 2008-06-12 ???y??? ? 000h ????????? 000h ?? ? 004h ????? a/d ?? spi ???? ? int ??? a/d ??? spi 8 ? ???? 004h ??? ? 008h ???? / 0 ?? / 0 ??? 008h ??? ? 00ch ???? / 1 ?? / 1 ??? 00ch ??? ? 010h ??? uart ? uart ????? ????????? ??? 010h ??? ? 014h ??? i 2 c ? spi ???? i 2 c spi ? i 2 c spi ????? 8 ? ??? 014h ??? ? 018h ????????? / 2 ??????? 018h ??? ? ? ? ? b ank bankbank bank ht46ru26/HT46CU26 ? bank ?????? rombank ?? bank ? ? call ? ??? bank ???? ? jmp ? ? ?? bank ???? bank ??? bank ? rombank ? ? call ? ? jmp ? ?? bp ? bank ????? ? bank ??? ? ret ? ?????? bank ? bp ????? bank ??? bank ??? bp ??
ht46ru26/HT46CU26 rev. 1.00 1 2 2008-06-12 ??ht46ru26/HT46CU26???? b a nk ?? ? call ? ? jmp ? ? include ht46ru26 .inc : rombank 0 codesec0 ;define rombank0 rombank 1 codesec1 ;define rombank1 : codesec0 .section at 000h ?code? ; locates the following program section into bank0 clr bp ; re-initializing the bp jmp start : start: : : lab0: : : mov a,bank routb1 ; routine?routb1?is locate in bank 1 mov bp,a ; load bank number for routb1 into bp call roub1 ; call subroutine located in bank 1 clr bp .5 ; program will return to this location ; after ret in bank 1 : ;but bp will retain bank 1 value; : ; so clear the bp codesec1 .section at 000h ?code? ; locates following program section into bank 1 : : routb1 proc : ret ; return program to bank0 but bp will ; retain bank 1 value routb1 endp : ?? bank ?????? bank ??? ?????? bank 0 ????????? 3??? bank0 bank ????? bank 0 ???? ??????????????? bank ?? bank ?? bank 0 bank 0 ???? ?reti? ??? bank ???????????? bank ???? ??? include ht46ru26 .inc : : rombank 0 codesec0 ; define rombank 0
ht46ru26/HT46CU26 rev. 1.00 1 3 2008-06-12 rombank 1 codesec1 ; define rombank 1 : : c o desec0 .section at 000h ?code? ; locates the following program section into bank 0 clr bp ; clear bank pointer after power-on reset : : org 004h ; jump here from any bank when ext . int. ; occurs - bp retains original value mov accbuf0,a ; backup accumulator mov a,bp ; backup bank pointer clr bp ; clear bp to indicate bank 0 otherwise ; original bp value will remain and give ; rise to false jmp or call addresses jmp ext_int ; jump to external interrupt subroutine : : org 008h ; jump here from any bank when timer 0 int ; occurs - bp retains original value mov accbuf1,a ; backup accumulator mov a,bp ; backup bank pointer clr bp ; clear bp to indicate bank 0 otherwise ; original bp value will remain and give ; rise to false jmp or call addresses jmp tim0_int ; jump to timer 0 interrupt subroutine : : org 00ch ; jump here from any bank when timer 1 int ; occurs - bp retains original value : : ex t _int: ; external interrupt subroutine mov bp_exti,a ; backup bank pointer mov a,status ; backup status register mov statusbuf1,a ; backup status register : : mov a,statusbuf0 ; restore status register mov status,a mov a,bp_exti ; restore bank pointer mov bp,a mov a,accbuf1 ; restore accumulator reti ; return to main program and original : :
ht46ru26/HT46CU26 rev. 1.00 1 4 2008-06-12 ????????????? ??????????? tblp ???? ?? tblh ????? ?????? tabrdc [m] tabrdl [m] ???? ??????????? ???? [m] ??????? tblh ? ????? 0 ???? / ? p r o g r a m m e m o r y t b l p t b l h s p e c i f i e d b y [ m ] t a b l e c o n t e n t s h i g h b y t e t a b l e c o n t e n t s l o w b y t e p r o g r a m c o u n t e r h i g h b y t e ?? ? ???????? org ?????? org ??? 000h bank1 ???? ? 2000h ??? 20h ?????? 05h ???? ??? 2005h org ????? tabrdc [m] ?? ??? ffh ?? temp ???? 55h ?? tblh include ht46ru26 .inc : : data .section ?data? temp db ? : : rombank 0 codesec0 ; bank 0 definition rombank 1 codesec1 ; bank 1 definition : : codesec0 .section at 0 ?code? jmp start : org 010h start: : : mov a,020h ; setup table high byte address mov tbhp,a
ht46ru26/HT46CU26 rev. 1.00 1 5 2008-06-12 mov a,005h ; setup table low byte address m o v tblp,a ; table pointer address is now 2005h tabrdc temp ; read table data from pc address 2005h nop ; ffh will be placed in the temp ; register and 55h will be placed in the tblh register codesec1 .section at 000h ?code? ; bank 1 code located here org 0000h ; this defines the offset from the start address of bank 1 ; which is 2000h dc 000aah, 011bbh, 022cch, 033ddh, 044eeh, 055ffh : tb l h ????????????? ????????? tblh ??? ????????????????? ????????????? ??????? ? ?? ? ? ? ? ? b14 b8 b7 b6 b5 b4 b3 b2 b1 b0 tabrdc [m] tbhp @7 @6 @5 @4 @3 @2 @1 @0 tabrdl [m] 1111111 @7 @6 @5 @4 @3 @2 @1 @0 ? pc14~pc8 ??? @7~@0 ? tblp ? ?? ? ???? 8 ra m ????? ??????????????? ????????????? ?????????? bank0 bank3 ???????? ? ?? ? ??????? ram ? 8 ? ???? 00h ??????? ?
ht46ru26/HT46CU26 rev. 1.00 1 6 2008-06-12 0 0 h 4 0 h f f h 3 f h b a n k 0 b a n k 1 b a n k 2 b a n k 3 s p e c i a l p u r p o s e d a t a m e m o r y b a n k 0 ~ 3 g e n e r a l p u r p o s e d a t a m e m o r y ? ? ? ?? ?? ?????? se t [m].i ? clr [m].i ???? ??? mp0 mp1 ?? ?? ? ? ?? ?? ???? / ?????? ram ???????? set [m].i ? clr [m].i ???????? ??????????? ???? ? ? ? ? ???????? ???????????????? ?????????????? ??? 00h ? ? ? ? ? 0 0 h 0 1 h 0 2 h 0 3 h 0 4 h 0 5 h 0 6 h 0 7 h 0 8 h 0 9 h 0 a h 0 b h 0 c h 0 d h 0 e h 0 f h 1 0 h 1 1 h 1 2 h 1 3 h 1 4 h 1 5 h 1 6 h 1 7 h 1 8 h 1 9 h 1 a h 1 b h 1 c h 1 d h 1 e h 1 f h 2 0 h 2 1 h 2 2 h 2 3 h 2 4 h 2 5 h 2 6 h 2 7 h 2 8 h 2 9 h 2 a h 2 b h 2 c h 2 d h 2 e h 2 f h 3 0 h 3 1 h 3 2 h 3 3 h 3 4 h 3 5 h 3 6 h 3 7 h 3 8 h 3 9 h 3 a h 3 b h 3 c h 3 d h 3 e h 3 f h : u n u s e d , r e a d a s " 0 0 " i a r 0 m p 0 i a r 1 m p 1 b p a c c p c l t b l p t b l h r t c c s t a t u s i n t c 0 t m r 0 h t m r 0 l t m r 0 c t m r 1 h t m r 1 l t m r 1 c p a p a c p b p b c p c p c c p d p d c p w m 0 p w m 1 p w m 2 p w m 3 i n t c 1 t b h p h a d r h c r h s r h d r a d r l a d r h a d c r a c s r p f p f c p g p g c t m r 2 t m r 2 c m f i c u s r u c r 1 u c r 2 t x r / r x r b r g s b c r s b d r
ht46ru26/HT46CU26 rev. 1.00 1 7 2008-06-12 ??? ??? ??? ??? ? ????? ??????? ????? i/o ?? a/d ??? 00h ?????????????? ???? 00h ? ??? ??? ??? ??? iar0 iar1 iar0 iar1 ?????????????? ??????????????? ???? (mp0 mp1) ????? / ??? iar0 iar1 ? 00h ????? ??? ??? ??? ??? mp0 mp1 ??? mp0 mp1 ????????? ?????????????????? ???? ?? 4 ram ???? adres1 adres4 data .section data ad r es1 db ? adres2 db ? adres3 db ? adres4 db ? block db ? code .section at 0 code org 00h start: mov a,04h ; setup size of block mov block,a mov a,offset adres1 ; accumulator loaded with first ram address mov mp0,a ; setup memory pointer with first ram address loop: clr iar0 ; clear the data at address defined by mp0 inc mp0 ; increment memory pointer sdz block ; check if last memory location has been cleared jmp loop continue: ???? ?? ram ? ? ?? ? ?????? bp ??? bp ? 5 6 ??? bp ? 0 1 ?? ?? bank0 halt ?? wdt ???? ????????? bank0 bank1 ? ????
ht46ru26/HT46CU26 rev. 1.00 1 8 2008-06-12 b p r e g i s t e r b 7 b 0 b p 0 b p 1 b p 0 d a t a m e m o r y 0 0 b a n k 0 0 1 b a n k 1 1 0 b a n k 2 1 1 b a n k 3 n o t u s e d , m u s t b e r e s e t t o " 0 " b p 6 b p 5 d a t a m e m o r y 0 0 b a n k 0 0 1 b a n k 1 1 0 b a n k 2 1 1 b a n k 3 n o t u s e d , m u s t b e r e s e t t o " 0 " b p 1 b p 5b p 6 ? ?? ? ? ? ? acc ?????? alu ?? alu ? ? acc ??? alu ??? ?????????? ??????????????? ????? ??? ??? ??? ??? pcl ??????????? ???????? pcl ??3?? ??????? 8 ???????? ??????? ? ?? ? tblp tbhp tblh ?????? tblp tbhp ???? ???????????????? ? inc dec ????????????? ???????? tblh ????????? ??? ??? ?????? ??? status 8 status ?? z ? c ? ac ? ov ?? pdf ??? to ??? / ??????? to pdf ??????????????? ???? to pdf ?????????? ??? to ??????? clr wdt halt ??? pdf ??? halt clr wdt ??????
ht46ru26/HT46CU26 rev. 1.00 1 9 2008-06-12 z o v a c c ?????  c ?????? c c ??? c ?? / ????  ac ???????????? ac ac ?  z ?? z z ?  ov ???? 1 ? ov ov ?  pdf ???? clr wdt ? pdf ? halt ? pdf  to ???? clr wdt halt ? to wdt to ???????????????? ??????????? t o p d f o v z a c c s t a t u s r e g i s t e r a r i t h m e t i c / l o g i c o p e r a t i o n f l a g s c a r r y f l a g a u x i l i a r y c a r r y f l a g z e r o f l a g o v e r f l o w f l a g s y s t e m m a n a g e m e n t f l a g s p o w e r d o w n f l a g w a t c h d o g t i m e - o u t f l a g n o t i m p l e m e n t e d , r e a d a s " 0 " b 7 b 0 ? ? ? ?? ??? ??? ?????? ?? ? ??? ?????? ?????? rtcc rtcc ????? rtc ?????? rtc ???? f s ??????????? ? rtcc ?? 2 0 rt2 rt0 ???? rtcc ? fs/2 8 fs/2 15 ? rtcc ?? rtc ?? 32768hz ?? ???? 4 qosc ? 0 ????? ????? qosc ?? 2 ??? r t c i n t e r r u p t p e r i o d b 7 b 0 q o s c r t 2 r t 1 r t 0 r t 2 0 0 0 0 1 1 1 1 r t 1 0 0 1 1 0 0 1 1 r t 0 0 1 0 1 0 1 0 1 p e r i o d 2 8 / f s 2 9 / f s 2 1 0 / f s 2 1 1 / f s 2 1 2 / f s 2 1 3 / f s 2 1 4 / f s 2 1 5 / f s n o t i m p l e m e n t e d , r e a d a s " 0 " r t c o s c i l l a t o r q u i c k - s t a r t 1 : d i s a b l e 0 : e n a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " r e a l t i m e c l o c k c o n t r o l r e g i s t e r rt cc rtc crtcc rtcc ? ?? ?
ht46ru26/HT46CU26 rev. 1.00 2 0 2008-06-12 ??? ?? ??? ??? intc0 intc1 8 ??????????? ??? / ?????????? emi ?? / ?? ?????????? emi ? reti ? emi ? ?? ? / ? ?? ? ????? 8 ? 16 ? / ?? / ???? 8 16 ?? / 2 tmr2 ?? 8 ? / 0/1 ? tmr0l/tmr0h tmr1l/tmr1h ??? 16 tmr0c tmr1c tmr2c ? ???? / ???? / ??????? / ?? ?? / ?? ?? ?? ?? ??? / ?????? / ?? ????? pa pb pc pd pf pg ???? / ????????? / ?? / ??? ????? pac pbc pcc pdc pfc pgc ??????? ???????????????? ????????????? ??? / ????????? ? set [m].i ? clr [m].i ????????? / ??????????? / ??????? ? ?? ?? ?? ?? pwm0 pwm1 pwm2 pwm3 ? pwm ???? 8 ????? ??? a/d ?? ???? ?? adrl adrh adcr acsr ?? 8 ? 12 a/d ? a/d ??p 2 ? 1 ?? 1 ???? a/d ??? adrh ?? adrl ???? ????? a/d ??? adcr ? a/d ????? acsr ^
ht46ru26/HT46CU26 rev. 1.00 2 1 2008-06-12 / ? ?? ? ??? / ?????????? ?????????????? ??????? ?? 48 ? / ??? pa pb pc pd pf pg / ? ?????? / ?????? / ???? mov a,[m] t2 ?? m ???? ??R ???????????????? k???k????? pmos ?? pa ? ??? ? ???????????????????? ???????? pa ???????????? ? halt ????????????? pa ??? ???????????? pa ? ??????? / ???? ???? ???? ???? ?? / ?????? pac pbc pcc pdc pfc pgc / ???????? cmos ?????? ?? / ????? / ?????? / ?????????? 1 ???? ?????????? 0 ?? cmos ?? ?????????? / ??????? ???????????? ? ? ? ? ????????????? ?????? / ?????? ???  ? ? int / pa5 ? intc0 ??? ??????? pac.5 ???? ??????????? pac ??????? intc0 ??? ??????
ht46ru26/HT46CU26 rev. 1.00 2 2 2008-06-12  pf d ?? pfd ? pfd ? pa3 pfd ???? ????????????? pac.3 ?? pfd pac ???? pfd ???? ?  pwm ??? pwm0 pwm1 pwm2 pwm3 ? pd0 pd1 pd2 pd3 ? pwm ??????????????? ?? pdc ??? pwm pdc ?? ?? pwm ?????  a/d ??? 8 a/d ??? pb ? i/o ? ?? a/d ? i/o ? a/d ??? adcr ? ?????? a/d ?? i/o ???? ??????? a/d ???? ? / ? ?? ??? ?? ? ? / ???????????????? / ?? v d d m u x w a k e - u p o p t i o n s y s t e m w a k e - u p r e a d d a t a r e g i s t e r c o n t r o l b i t p u l l - h i g h o p t i o n d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t i / o p i n w e a k p u l l - u p d q c k s q d q c k s q p a o n l y ??? ? ?? ??? ???/ // /? ?? ?
ht46ru26/HT46CU26 rev. 1.00 2 3 2008-06-12 v d d m u x r e a d d a t a r e g i s t e r c o n t r o l b i t p u l l - h i g h o p t i o n d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t i n t f o r p a 5 o n l y p a 5 / i n t w a k e - u p o p t i o n s y s t e m w a k e - u p w e a k p u l l - u p d q c k s q d q c k s q p a 5 pa5pa5 pa5 / // /? ?? ? v d d m u x m u x e n ( p f d o r p w m 0 ~ p w m 3 ) w a k e - u p o p t i o n i n t f o r p a 5 o n l y s y s t e m w a k e - u p ( p a o n l y ) r e a d d a t a r e g i s t e r d q c k s d q c k q s c o n t r o l b i t d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t p a 0 ~ p a 2 , p a 3 / p f d p a 4 , p a 5 / i n t p a 6 / s d a , p a 7 / s c l p c 2 ~ p c 5 p c 6 / o s c 3 , p c 7 / o s c 4 p d 0 / p w m 0 ~ p d 3 / p w m 3 p d 4 ~ p d 7 p f 0 ~ p f 7 p g 0 ~ p g 7 q [ p a 3 , p f d ] o r [ p d 0 , p w m 0 ] o r [ p d 1 , p w m 1 ] o r [ p d 2 , p w m 2 ] o r [ p d 3 , p w m 3 ] p u l l - h i g h o p t i o n / // /? ?? ?
ht46ru26/HT46CU26 rev. 1.00 2 4 2008-06-12 v d d m u x r e a d d a t a r e g i s t e r c o n t r o l b i t p u l l - h i g h o p t i o n d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t p b 0 / a n 0 ~ p b 7 / a n 7 a c s 2 ~ a c s 0 t o a / d c o n v e r t e r p c r 2 p c r 1 p c r 0 w e a k p u l l - u p a n a l o g i n p u t s e l e c t o r d q c k s q d q c k s q p b p bpb pb / // /? ?? ? v d d m u x m u x r e a d d a t a r e g i s t e r d q c k s d q c k q s c o n t r o l b i t d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t p c 0 / t x q f r o m u a r t t x u a r t e n & t x e n p u l l - h i g h o p t i o n p c0/tx pc0/txpc0/tx pc0/tx / // /? ?? ? v d d m u x r e a d d a t a r e g i s t e r d q c k s d q c k q s c o n t r o l b i t d a t a b u s w r i t e c o n t r o l r e g i s t e r c h i p r e s e t r e a d c o n t r o l r e g i s t e r w r i t e d a t a r e g i s t e r d a t a b i t p c 1 / r x q t o u a r t r x p u l l - h i g h o p t i o n p c1/rx pc1/rxpc1/rx pc1/rx / // /? ?? ?
ht46ru26/HT46CU26 rev. 1.00 2 5 2008-06-12 ? ? ? ? ??????????? / ????? ??? / ?????????? ? pac pbc pcc pdc pfc pgc ???????? ??????? pa pb pc pd pf pg ?? ???????????? ? set [m].i clr [m].i ??????????? ? - ? - ??????????? ??? t 1 t 2 t 3 t 4 t 1 t 2 t 3 t 4 w r i t e t o p o r t r e a d f r o m p o r t s y s t e m c l o c k p o r t d a t a ? ? ? ? pa ????? ha lt ??????????? pa ???????? pa ???? ?????????????? ?????? halt ?????????? ?
ht46ru26/HT46CU26 rev. 1.00 2 6 2008-06-12 ? ? ? ? / ? / ?????????????? h t46ru26/HT46CU26 ? 2 16 1 8 ?? / ? / ??? ?????????? 8 ?? ??? ?? / ????? 8 16 ?? / 2 tmr2 ?? 8 ? / 0/1 ? tmr0l/tmr0h tmr1l/tmr1h ??? 16 tmr0c tmr1c tmr2c ????? / ???? / ??????? / ????? ?? ???? ?? / ?? ?? ?? ?? ????????? / ??? / ???? ?????????? ? / ?????????? / tmr0 tmr1 tmr2 ???????????? t0e t1e t2e ? ?? t m r 0 t 0 e t i m e r / e v e n t c o u n t e r m o d e c o n t r o l 1 6 - b i t p r e l o a d r e g i s t e r d a t a b u s r e l o a d o v e r f l o w t o i n t e r r u p t l o w b y t e b u f f e r t 0 m 1 t 0 m 0 t 0 o n h i g h b y t e l o w b y t e 1 6 - b i t t i m e r / e v e n t c o u n t e r p f d 2 ? 7 - s t a g e p r e s c a l e r t 0 p s c 2 ~ t 0 p s c 0 ( 1 / 1 ~ 1 / 1 2 8 ) f s y s 16 ? ?? ? / 0 ? ?? ? t m r 1 t 1 e t i m e r / e v e n t c o u n t e r m o d e c o n t r o l 1 6 - b i t t i m e r / e v e n t c o u n t e r p r e l o a d r e g i s t e r d a t a b u s r e l o a d o v e r f l o w t o i n t e r r u p t l o w b y t e b u f f e r t 1 m 1 t 1 m 0 t 1 o n h i g h b y t e l o w b y t e 1 6 - b i t t i m e r / e v e n t c o u n t e r p f d 2 ? f s y s / 4 16 ? ?? ? / 1 ? ?? ?
ht46ru26/HT46CU26 rev. 1.00 2 7 2008-06-12 t m r 2 t 2 e t i m e r / e v e n t c o u n t e r m o d e c o n t r o l t 2 o n p r e l o a d r e g i s t e r t i m e r / e v e n t c o u n t e r d a t a b u s r e l o a d o v e r f l o w t o i n t e r r u p t 7 - s t a g e p r e s c a l e r t 2 p s c 2 ~ t 2 p s c 0 ( 1 / 1 ~ 1 / 1 2 8 ) 8 - b i t t i m e r / e v e n t c o u n t e r t 2 m 1 t 2 m 0 f s y s 8 ? ?? ? / 2 ? ?? ? ? ? ? ? / ? ?? ? tmr0l/ tmr0h tmr1l/ tmr1h tmr2 ? / ?????????????? / 01 16 ? / ? 8 ? 16 ? / ????? ? tmr0l/tmr0h tmr1l/ tmr1h ?? / 2 8 ? / ?tmr2 ???????????????? / ? ???? / ?????????? 8 ? / ? ffh 16 ? / ? ffffh ??????? ?????k? / ??????? 00h ffh ffffh ?????? ??????? / off ?? ?????? / ????? ???????????? 16 ?? / ??? / ???? ?????????? tmr0l tmr1l ?? ???????????? tmr0h tmr1h ???????????? / ?? ?????????????????? ? 16 ? / ????????????? ????????????????? ????????????????? / ???? ????????? / ????? ? ?? ? / ?? ?? ?? ?? tmr0c tmr1c tmr2c holtek mcu ?? / ??????????? ????? tmr0c tmr1c tmr2c ? / ????? ?? / ????????? / ????? ?????? ????????????????? / ?? 7 6 t0m0/t0m1 t1m0/t1m1 t2m0/t1m1 ???? ? t0on t1on t2on ? / ??? 4 ??????? ????? tmr0c tmr2c ? 0~2 ???? ???????????? ?? t0e t1e t2e ??? / ??? 3 ???
ht46ru26/HT46CU26 rev. 1.00 2 8 2008-06-12 t m r 0 c r e g i s t e r b 7 e v e n t c o u n t e r a c t i v e e d g e s e l e c t 1 : c o u n t o n f a l l i n g e d g e 0 : c o u n t o n r i s i n g e d g e p u l s e w i d t h m e a s u r e m e n t a c t i v e e d g e s e l e c t 1 : s t a r t c o u n t i n g o n r i s i n g e d g e , s t o p o n f a l l i n g e d g e 0 : s t a r t c o u n t i n g o n f a l l i n g e d g e , s t o p o n r i s i n g e d g e t i m e r / e v e n t c o u n t e r c o u n t i n g e n a b l e 1 : e n a b l e 0 : d i s a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " o p e r a t i n g m o d e s e l e c t t 0 m 1 t 0 m 0 0 0 n o m o d e a v a i l a b l e 0 1 e v e n t c o u n t e r m o d e 1 0 t i m e r m o d e 1 1 p u l s e w i d t h m e a s u r e m e n t m o d e t 0 e t 0 o n t 0 m 0 t 0 m 1 t i m e r p r e s c a l e r r a t e s e l e c t t 0 p s c 2 0 0 0 0 1 1 1 1 b 0 t 0 p s c 2 t 0 p s c 1 t 0 p s c 0 t 0 p s c 1 0 0 1 1 0 0 1 1 t 0 p s c 0 0 1 0 1 0 1 0 1 t i m e r r a t e 1 : 1 1 : 2 1 : 4 1 : 8 1 : 1 6 1 : 3 2 1 : 6 4 1 : 1 2 8 ? ? ? ? / ?? ?? ?? ?? 0 b 7 n o t i m p l e m e n t e d , r e a d a s " 0 " e v e n t c o u n t e r a c t i v e e d g e s e l e c t 1 : c o u n t o n f a l l i n g e d g e 0 : c o u n t o n r i s i n g e d g e p u l s e w i d t h m e a s u r e m e n t a c t i v e e d g e s e l e c t 1 : s t a r t c o u n t i n g o n r i s i n g e d g e , s t o p o n f a l l i n g e d g e 0 : s t a r t c o u n t i n g o n f a l l i n g e d g e , s t o p o n r i s i n g e d g e t i m e r / e v e n t c o u n t e r c o u n t i n g e n a b l e 1 : e n a b l e 0 : d i s a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " o p e r a t i n g m o d e s e l e c t t 1 m 1 t 1 m 0 0 0 n o m o d e a v a i l a b l e 0 1 e v e n t c o u n t e r m o d e 1 0 t i m e r m o d e 1 1 p u l s e w i d t h m e a s u r e m e n t m o d e t 1 e t 1 o n t 1 m 0 t 1 m 1 b 0 t m r 1 c r e g i s t e r ? ?? ? / ?? ?? ?? ?? 1
ht46ru26/HT46CU26 rev. 1.00 2 9 2008-06-12 t m r 2 c r e g i s t e r b 7 t 2 e t 2 o n t 2 m 0 t 2 m 1 b 0 t 2 p s c 2 t 2 p s c 1 t 2 p s c 0 e v e n t c o u n t e r a c t i v e e d g e s e l e c t 1 : c o u n t o n f a l l i n g e d g e 0 : c o u n t o n r i s i n g e d g e p u l s e w i d t h m e a s u r e m e n t a c t i v e e d g e s e l e c t 1 : s t a r t c o u n t i n g o n r i s i n g e d g e , s t o p o n f a l l i n g e d g e 0 : s t a r t c o u n t i n g o n f a l l i n g e d g e , s t o p o n r i s i n g e d g e t i m e r / e v e n t c o u n t e r c o u n t i n g e n a b l e 1 : e n a b l e 0 : d i s a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " o p e r a t i n g m o d e s e l e c t t 2 m 1 t 2 m 0 0 0 n o m o d e a v a i l a b l e 0 1 e v e n t c o u n t e r m o d e 1 0 t i m e r m o d e 1 1 p u l s e w i d t h m e a s u r e m e n t m o d e t i m e r p r e s c a l e r r a t e s e l e c t t 2 p s c 2 0 0 0 0 1 1 1 1 t 2 p s c 1 0 0 1 1 0 0 1 1 t 2 p s c 0 0 1 0 1 0 1 0 1 t i m e r r a t e 1 : 1 1 : 2 1 : 4 1 : 8 1 : 1 6 1 : 3 2 1 : 6 4 1 : 1 2 8 ? ?? ? / ?? ?? ?? ?? 2 ???? ?????? ??? ?????????? ??????? t0m1/t0m0 t1m1/t1m0 t2m1/t2m0 tmrc ? 7 6 1 0 ??? ? ?? ??? ??? ??? ???? f sys f sys /4 ?? / ?? ??? t0on t1on t2on ? / ?? 4 ????? ???????????????? ???????????? ???? intc eti ???? i n c r e m e n t t i m e r c o n t r o l l e r t i m e r c l o c k o r p r e s c a l e r o u t p u t t i m e r + 1 t i m e r + 2 t i m e r + n t i m e r + n + 1 ????? ? ???? ????? ?????
ht46ru26/HT46CU26 rev. 1.00 3 0 2008-06-12 ??? ??? ??? ??? ????????????? t0m1/t0m0 t1m1/t1m0 t2m1/t2m0 tmrc ?? 7 6 0 1 ?? ? ?? ???? ???? ?? ?????? ???? tmr0 tmr1 tmr2 ?? ?????? / ???? t0on t1on t2on ? / ?? 4 ????? t0e t1e t2e ? / ?? 3 ?????? / ?????????? ?????? / ??????????? ??????????? ??? intc ? eti ? ???????? halt ??? / ?????? ? / ??????/ ? t i m e r + 2 e x t e r n a l e v e n t i n c r e m e n t t i m e r c o u n t e r t i m e r + 3 t i m e r + 1 ???? ???? ???? ???? ??? ??? ??? ??? ?????????????? t0m1/t0m0 t1m1/t1m0 t2m1/t2m0 tmrc ?? 7 6 1 1 ? ? ? ??? ???? ?? ??? ???? f sys f sys /4 ?? / ?? ??? t0on t1on t2on ? / ?? 4 ????? ??????????? ? t0e t1e t2e ? / ?? 3 ????? ????????? / ??????????? ????????????? ?????????????????? ?? 0 ???????????? ??????? 0 ??? / ??? 0
ht46ru26/HT46CU26 rev. 1.00 3 1 2008-06-12 ?? / ???????? / ???? ???????????????? ???????? ???????????? ??????????? ??? intc ? eti ? + 1 + 2 + 3 + 4 t i m e r e x t e r n a l t m r 0 / t m r 1 / t m r 2 p i n i n p u t t o n ( w i t h t e = 0 ) p r e s c a l e r o u t p u t i n c r e m e n t t i m e r c o u n t e r p r e s c a l e r o u t p u t i s s a m p l e d a t e v e r y f a l l i n g e d g e o f t 1 . ????? ????? ????? ????? ??? ? ? ??? ??? ? ?? ? pfd pfd pa3 ?????????? / ? pfd ???????????? ???????????????????? ???????????? pfd ?? ??????? ? pfd ?? pa ?? pac 3 ??? pfd ???? pa3 1 pfd ?? pfd ? / ???? pa3 0 pfd ??? ????t????????? t i m e r o v e r f l o w p f d c l o c k p a 3 d a t a p f d o u t p u t a t p a 3 p f d ?? ???? ?? ? / 0 ?? / 2 ???????? / ?? tmr0c tmr2c ? psc0~psc2 G? / ???????? ??????????
ht46ru26/HT46CU26 rev. 1.00 3 2 2008-06-12 / ? ?? ? ??????????????? ???? / ?? / ??? / ?? ??????? pac ???????? ?? / ????? ? ? ? ? ? / ????????????????? ????????????? ????????????????? ?????????????? ???????????????? ?????? / ?????????? ????????? ?? / ?????????? ??????????? / ??????? ????????????? / ?? ? / ???????? / ??????? ?? / ???? / ????? / ? ???????? / ??????? / ??? ??? / ????????????????? ?????? / ?????????? ? / ??????? ?? halt ??? / ??????? ??? / ???? halt ??????? ? halt ??? 1
ht46ru26/HT46CU26 rev. 1.00 3 3 2008-06-12 ? ? ? ? / ? ? ? ? ???/ 0 ??????? ? tmr0c ?? 4 ??/???/ 0 ?????? ????? org 04h ; external interrupt vectors reti org 08h ; timer/event counter 0 interrupt vector jmp tmrint0 ;jmp here when timer/event counter 0 overflows : org 20h ; main program ; internal timer/event counter 0 interrupt routine tmrint0: ;timer/event counter 0 main program placed here : reti : : begin: ; setup timer registers mov a,09bh ; setup timer preload value mov tmr0,a mov a,081h ; setup timer control register mov tmr0c,a ; timer mode and prescaler set to /4 ; setup interrupt register mov a,005h ; enable master interrupt and timer interrupts mov intc0,a set tmr0c.4 ;start timer/event counter0? note mode bits must be previously setup
ht46ru26/HT46CU26 rev. 1.00 3 4 2008-06-12 ? ? ? ? ????? 4 ? (pwm) ??????? ? pwm ??? pwm ?????????? ????? pwm ??????? pwm ?? ?? pwm pwm ???? pwm0 pwm1 ??? 8 ??????? pwm ?????? ?? 7 1 6+2 ?????????? ??????????????? pwm ??? pwm ????? pwm ??????????? ??? pwm ????? f sys ???? 2 4 ???? pwm ????? ???? pwm ???? pwm ?????? ?? pwm ^ pwm ? pwm ?????? pwm ? ??? ? pwm ? ?? ? pwm ?? ???? ?? 6 +2 ?? f sys /64 7 +1 ?? f sys /128 f s y s /256 [pwm]/256
ht46ru26/HT46CU26 rev. 1.00 3 5 2008-06-12 6+2 pwm ? ? ? ??? ?? ?? 8 pwm ??? pwm 256 ? 6+2 pwm ? ?? pwm ????? 0~ 3 ?? i ? ?? 64 ????? 4 ????? 8 pwm pwm0 pwm1 ????? pwm ????? 2 ~ 7 ? dc ??? 0 ~ 1 ? ac ? 6+2 pwm ????? ??? ac (0~3) dc ( ?? ???? ?? ) i ht46ru26/HT46CU26 rev. 1.00 3 6 2008-06-12 7+1 ? ? ? ??? ?? ?? 8 pwm ??? pwm 256 ? 7+1pwm ?? ? pwm ???? 0~ 1 ?? i ? ? 128 ????? 2 ????? 8 pwm pwm0 pwm1 ????? pwm ????? 1 ~ 7 ? dc ??? 0 ? ac ? 7+1 pwm ?????? ? ac (0~1) dc ( ?? ???? ?? ) i ht46ru26/HT46CU26 rev. 1.00 3 7 2008-06-12 pwm ?? pwm pd0 pd3 ?????? pwm ? i/o ??? pwm ?? i/o ???? pdc ?? 0 ? ? pwm ????k?? pwm ? pwm ???? 1 ? pd ??? pwm ??? 0 ? pd ??? pwm ??????? pd ?? pwm ?? / ?????? pwm ? pdc ? ??? 1 ????? pwm ? ?? ? ?? pwm ?? pwm ????? pwm mov a,64h ; pwm ? 64h ??? 100 mov pwm0,a clr pdc.0 ; pd0 ? set pd.0 ;pd.0=1; ? pwm clr pd.0 ; pwm0 ? pd.0 ???
ht46ru26/HT46CU26 rev. 1.00 3 8 2008-06-12 a/d ? ? ? ? ???? ????????? ??? a/d ?????? a/d ??? ??????? a/d ??????? a/d ????????? ?????? 12 ? ?? a/d ?????? a d c s o u r c e f s y s / 2 ? n a c s r r e g i s t e r a d c v d d p b 0 / a n 0 p b 1 / a n 1 p b 7 / a n 7 a / d r e f e r e n c e v o l t a g e p c r 0 ~ p c r 2 a d c s 0 ~ a d c s 2 s t a r t e o c b a d c r r e g i s t e r p i n c o n f i g u r a t i o n b i t s c h a n n e l s e l e c t b i t s s t a r t b i t c l o c k d i v i d e r a t i o e n d o f c o n v e r s i o n b i t a d r l a d r h a / d d a t a r e g i s t e r s a / d a/d a/d a/d ?? ???? ?? a/d ??? ? ?? ??? ??? adrl adrh a/d ???????????? 2 a/d ? ????????? adrh ? 8 ?? adrl ? 8 ? 4 ? 9 ??? 1 d0~d8 a/d ?? ? ?? ? bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 adrl d3 d2 d1 d0 adrh d11 d10 d9 d8 d7 d6 d5 d4 a/d a / da/d a/d ?? ???? ?? a/d ? ? ? ??? ???? ?? - -- - adcr ? adcr a/d ???? 8 ?????? ??? a/d ????? i/o ?? a/d ? ???? ? adcr acs2~acs0 ???????????? 4 ???????? adcr ? acs2~acs0 ?????? a/d ???? acs2 ?? 0
ht46ru26/HT46CU26 rev. 1.00 3 9 2008-06-12 adcr pc r2~pcr0 pb ?? a/d ??? ? i/o ?? pcr2~pcr0 ?? 0 pb ????? i/o ?? a/d ??????? adcr ? start ???? a/d ??????? ??????????? start ???????? adcr ? eocb ? 1 ?? start ????? / ? adcr ? eocb ?????? eocb ?? ?? 0 ??????? a/d ????? ???? a/d ???? a/d ?? a/d ? ??? adcr ? eocb ???? a/d ? ?? a d c r r e g i s t e r s e l e c t a / d c h a n n e l b 7 b 0 s t a r t p c r 2 p c r 1 p c r 0 a c s 2 a c s 1 a c s 0 a c s 1 0 0 1 1 0 0 1 1 a c s 2 0 0 0 0 1 1 1 1 a c s 0 0 1 0 1 0 1 0 1 : a n 0 : a n 1 : a n 2 : a n 3 : a n 4 : a n 5 : a n 6 : a n 7 p o r t b a / d c h a n n e l c o n f i g u r a t i o n s p c r 2 0 0 0 0 1 1 1 1 p c r 1 0 0 1 1 0 0 0 0 p c r 0 0 1 0 1 0 1 0 1 : p o r t b a / d c h a n n e l s - a l l o f f : p b 0 e n a b l e d a s a n 0 : p b 0 ~ p b 1 e n a b l e d a s a n 0 ~ a n 1 : p b 0 ~ p b 2 e n a b l e d a s a n 0 ~ a n 2 : p b 0 ~ p b 3 e n a b l e d a s a n 0 ~ a n 3 : p b 0 ~ p b 4 e n a b l e d a s a n 0 ~ a n 4 : p b 0 ~ p b 5 e n a b l e d a s a n 0 ~ a n 5 : p b 0 ~ p b 7 e n a b l e d a s a n 0 ~ a n 7 e n d o f a / d c o n v e r s i o n f l a g 1 : n o t e n d o f a / d c o n v e r s i o n - a / d c o n v e r s i o n w a i t i n g o r i n p r o g r e s s 0 : e n d o f a / d c o n v e r s i o n - a / d c o n v e r s i o n e n d e d s t a r t t h e a / d c o n v e r s i o n 0 ? 1 ? 0 : s t a r t 0 ? 1 : r e s e t a / d c o n v e r t e r a n d s e t e o c b t o " 1 " e o c b a/d a/d a/d a/d ??? ??? ??? ??? ???? ? ??? ???? ???? a/d ??????? f sys ???? acsr ? adcs1 adcs0 ? a/d ????? f sys adcs1 adcs0 ? a/d ??? ?? a c s r r e g i s t e r s e l e c t a / d c o n v e r t e r c l o c k s o u r c e b 7 b 0 t e s t a d c s 1 a d c s 0 a d c s 1 0 0 1 1 a d c s 0 0 1 0 1 : s y s t e m c l o c k / 2 : s y s t e m c l o c k / 8 : s y s t e m c l o c k / 3 2 : u n d e f i n e d n o t i m p l e m e n t e d , r e a d a s " 0 " f o r t e s t m o d e u s e o n l y a/ d a/d a/d a/d ? ?? ????? ???? ???? ????
ht46ru26/HT46CU26 rev. 1.00 4 0 2008-06-12 a/d ? ? ? ? (t ad ) f s y s adcs1, adcs0=00 (f s y s /2) adcs1, adcs0=01 (f s y s /8) adcs1, adcs0=10 (f s y s /32) adcs1, adcs0=11 1mhz 2 s 8 s 32 s 2mhz 1 s 4 s 16 s 4mhz 500ns* 2 s 8 s 8mhz 250ns* 1 s 4 s a/d a / da/d a/d ?? ?? ?? ?? a/d a/d ?? pb ?? i/o ? adcr ? pcr2~pcr0 ?? pb / ??????? ????????? i/o ????? ?? i/o ?????k? a/d ??? ?? pb ??????? a/d ?? a/d ?? pcr2~pcr0 ? a/d ????????? vdd ? a/d ???? ?????? vdd ???? a/d ?? ???? ?? ? ad ????? pb ?????? ad ? 3?????3?? eocb ??????? ???????????? adcr start 1~10 ???? eocb ? a/d ? ?? ? ?? a/d ???  1 ? acsr ? adcs1 adcs0 ? a/d ???  2 ? adcr ? acs2~acs0 ?? a/d ??  3 ? adcr ? pcr2~pcr0 ? pb ?? a/d ?? a/d ????? adcr ??  4 ????????? a/d ????? intc ? emi ? 1 a/d ?? eadi ?? 1  5 ?? adcr ? start ? 0 1 ?? 0 ?????? ?? 0
ht46ru26/HT46CU26 rev. 1.00 4 1 2008-06-12  6 ? adcr ? eocb ?????? ????????? a/d ?? adrl adrh ?? ?????????? a/d ?? ???? adcr ? eocb ?????? 4 ?? ? ???????? 0 0 0 b 0 0 0 b 0 1 1 b 0 1 0 b s t a r t e o c b p c r 2 ~ p c r 0 a c s 2 ~ a c s 0 p o w e r - o n r e s e t e n d o f a / d c o n v e r s i o n 1 : d e f i n e p b c o n f i g u r a t i o n 2 : s e l e c t a n a l o g c h a n n e l s t a r t o f a / d c o n v e r s i o n r e s e t a / d c o n v e r t e r 0 0 0 b s t a r t o f a / d c o n v e r s i o n r e s e t a / d c o n v e r t e r 0 0 0 b 1 . p b p o r t s e t u p a s i / o s 2 . a / d c o n v e r t e r i s p o w e r e d o f f t o r e d u c e p o w e r c o n s u m p t i o n 1 0 0 b 0 0 1 b s t a r t o f a / d c o n v e r s i o n r e s e t a / d c o n v e r t e r d o n ' t c a r e e n d o f a / d c o n v e r s i o n e n d o f a / d c o n v e r s i o n s t a r t b i t s e t h i g h w i t h i n o n e t o t e n i n s t r u c t i o n c y c l e s a f t e r t h e p c r 0 ~ p c r 2 b i t s c h a n g e s t a t e a / d c l o c k m u s t b e f s y s / 2 , f s y s / 8 o r f s y s / 3 2 n o t e : a / d s a m p l i n g t i m e a / d s a m p l i n g t i m e a / d s a m p l i n g t i m e 3 2 t a d 3 2 t a d 3 2 t a d t a d c a / d c o n v e r s i o n t i m e a / d c o n v e r s i o n t i m e a / d c o n v e r s i o n t i m e t a d c t a d c a/d ??? ? ????? ??? a/d ?????????????? a/ d ????????????? ? ? ? ? ????? adcr ad ????????? ?? ad ??????? io ?? ad ??? ????? ad ??????????? ??? ad ????ad ?3??? ??? adcr start ??? ad ?????? ad ??3? ad ?
ht46ru26/HT46CU26 rev. 1.00 4 2 2008-06-12 a/d ? ? ? ? ?? a/d ???? adcr ? eocb ? a/d ????? a/d ??? ?? eocb ? a/d ?? clr eadi ; ? a/d mov a,00000001b mov acsr,a ; acsr ?? f sys /8 ? a/d ?? mov a,00100000b ; adcr ? port pb0~pb3 ? a/d mov adcr,a ; an0 a/d ? : : : ; ???? start ?? 0-1-0 10 : ; ?? start_conversion: clr start set start ; a/d ? clr start ; ? a/d ? polling_eoc: sz eocb ; ? adcr ? eocb ? a/d ?? jmp polling_eoc ; ? mov a,adrl ; adrh ?? a/d ??? mov adrl_buffer,a ; ??? mov a,adrh ; adrl ?? a/d ??? mov adrh_buffer,a ; ??? : : jmp start_conversion ; ?? a/d ?
ht46ru26/HT46CU26 rev. 1.00 4 3 2008-06-12 ? a / d ?? clr eadi ; ? a/d mov a,00000001b mov acsr,a ; acsr ?? f sys /8 ? a/d ?? mov a,00100000b ; adcr ? port pb0~pb3 ? a/d mov adcr,a ; an0 a/d ? : : : ; ???? start ?? 0-1-0 10 : ; ?? start_conversion: clr start set start ; a/d ? clr start ; ? a/d ? clr adf ; ad ? set eadi ; a/d set emi ; : : ; ?? adc_isr: mov acc_stack,a ; acc ??? mov a,status mov status_stack,a ; status ??? : : mov a,adrh ; adrh ??? mov adrh_buffer,a ; ???? mov a,adrl ; adrl ??? mov adrl_buffer,a ; ???? clr start set start ; a/d ? clr start ; ? a/d ? : : exit_int_isr: mov a,status_stack mov status,a ; status ? mov a,acc_stack ; acc ? reti
ht46ru26/HT46CU26 rev. 1.00 4 4 2008-06-12 a/d ? ? ? ? ht46ru26/HT46CU26 ?? 12 a/d ???? fffh ? ? vdd ??????? v dd /256 ????? ? 9 a/d ???? 1ffh ??? v dd /512 ?? ?? a/d ??????? f e h ( ) f f h f d h 0 3 h 0 2 h 0 1 h 0 . 5 l s b 0 1 2 3 4 0 9 3 4 0 9 4 4 0 9 5 4 0 9 6 a n a l o g i n p u t v o l t a g e 1 . 5 l s b v d d 4 0 9 6 a / d c o n v e r s i o n r e s u l t a/d a/da/d a/d ? ?? ? ???? a/ d ?? 0.5lsb ??? 0 ?????? 0.5lsb ????? vdd ?? 1.5 lsb ?
ht46ru26/HT46CU26 rev. 1.00 4 5 2008-06-12 i 2 c ?? ?? ?? ?? i 2 c ????????? 2 ????? ???????????? i 2 c ?????? i 2 c ???? i 2 c ?? sda ??? scl ? ?? sda scl ????? ???? i 2 c ?????????? i 2 c ???? ? i 2 c ????????? ????????????? i 2 c ????????? i 2 c ?? hadr hcr hsr hdr i 2 c ???????????????? ???? i 2 c d a t a r e g i s t e r ( h d r ) s l a v e a d d r e s s r e g i s t e r ( h a d r ) s h i f t r e g i s t e r h t x d i r e c t i o n c o n t r o l m u x a d d r e s s m a t c h ( h a a s ) i 2 c i n t e r r u p t s c l s d a d a t a i n ( t o l s b ) d a t a o u t ( f r o m m s b ) t r a n s m i t / r e c e i v e c o n t r o l u n i t h c f , 8 - b i t d a t a c o m p l e t e h b b , d e t e c t s t a r t o r s t o p d a t a b u s a d d r e s s c o m p a r a t o r t x a k , e n a b l e / d i s a b l e a c k n o w l e d g e s r w , r e a d / w r i t e s l a v e i ii i 2 2 2 2 c c c c ???? ???? ???? ???? i 2 c ??? ?? ??? ??? hadr hadr ??? hade ?? 1 7 mcu ? 0 ? ????????? h a d r r e g i s t e r b 7 b 0 n o t i m p l e m e n t e d , r e a d a s " 0 " s l a v e a d d r e s s i ii i 2 22 2 c c c c ??? ??? ??? ??? i 2 c / ?? ?? ?? ?? hdr hdr ? i 2 c ? / ?????? hdr ? ???? hdr ?? i 2 c ???? hdr ? i 2 c ??? ??? ??? ??? hcr hcr i 2 c ??? i 2 c ??? / ?? i 2 c ????? ?? hsr i 2 c ????? i 2 c ???? i 2 c ??? hcr3 7 hen i 2 c ? / ??? i 2 c ??? 1 4 htx i 2 c ??????????? 1 3 txak ???? 8 ?? 9 ??? i 2 c ??????h 0
ht46ru26/HT46CU26 rev. 1.00 4 6 2008-06-12 h c r r e g i s t e r b 7 b 0 n o t i m p l e m e n t e d , r e a d a s " 0 " t r a n s m i t a c k n o w l e d g e f l a g 1 : d o n ' t a c k n o w l e d g e 0 : a c k n o w l e d g e t r a n s m i t / r e c e i v e m o d e 1 : t r a n s m i t m o d e 0 : r e c e i v e m o d e n o t i m p l e m e n t e d , r e a d a s " 0 " i 2 c b u s f u n c t i o n 1 : e n a b l e 0 : d i s a b l e h e n t x a k h t x i ii i 2 2 2 2 c c c c ??? ??? ??? ??? i 2 c ? ?? ??? ??? ??? hsr i 2 c ?? hsr 8 ??? 5 ? 7 hcf ??? h 0 ?? 1 6 haas ??? 1 ?? i 2 c ? 1 ??? 14h ??? i 2 c ??? haas ??? haas h 0 5 hbb 1 ? i 2 c ???? start ?? hbb h 0 ? i 2 c ???? stop ??? i 2 c ? 2 srw / ? ??? i 2 c ???????? / ?? haas 1 ? srw ???????? srw 1 ?? i 2 c ??? i 2 c ???? srw h 0 ? ?? i 2 c ???????? 0 ?? rxak 0 ?? 8 ?? 9 ?? ????????? rxak ????? ??? i 2 c ? rxak 1 ??? sda ?? stop ??? i 2 c ? ?? ? i 2 c ????????????????? ??????? i 2 c ???????? ???? 7 ????????? haas ?? i 2 c ????? haas ? i 2 c ? ??? 8 ?? ??? 7 ????? 8 ? / ? ??? srw ? srw ???????? i 2 c ?????? i 2 c ??? i 2 c ???? 1 i 2 c ??? (hadr) ? 2 i 2 c ??? (hcr) hen ? i 2 c ? 3 i 2 c ??? 1(intc1) ehi i 2 c ?
ht46ru26/HT46CU26 rev. 1.00 4 7 2008-06-12 s t a r t s i g n a l f r o m m a s t e r s e n d s l a v e a d d r e s s a n d r / w b i t f r o m m a s t e r a c k n o w l e d g e f r o m s l a v e s e n d d a t a b y t e f r o m m a s t e r a c k n o w l e d g e f r o m s l a v e s t o p s i g n a l f r o m m a s t e r s t a r t w r i t e s l a v e a d d r e s s t o h a d r s e t h e n i 2 c b u s i n t e r r u p t = ? e n a b l e d i s a b l e s e t e h i w a i t f o r i n t e r r u p t g o t o m a i n p r o g r a m c l r e h i p o l l h i f t o d e c i d e w h e n t o g o t o i 2 c b u s i s r g o t o m a i n p r o g r a m i 2 c ??? ?? ??? ???
ht46ru26/HT46CU26 rev. 1.00 4 8 2008-06-12 s t a r t h a a s = 1 ? h t x = 1 ? s r w = 1 ? y e s n o y e s n o r x a k = 1 ? y e s n o n o r e a d f r o m h d r r e t i y e s d u m m y r e a d f r o m h d r r e t i r e t i w r i t e t o h d r s e t h t x w r i t e t o h d r d u m m y r e a d f r o m h d r c l r h t x c l r t x a k r e t i r e t i c l r h t x c l r t x a k i 2 c isr isrisr isr ? ?? ? ? ???? ?? ??? i 2 c ?? mcu ? ?????? i 2 c ????? hbb ??? scl ?? sda ????? ? ?? ? ??????????? ????? i 2 c ???? (7 ) ???????????? ( 8 ) srw ???? 9 ???????? ??? (haas) i 2 c ???? haas ? i 2 c ???? 8 ????????? ?????? hdr hdr ?? scl ? srw ? hsr ? srw ?? i 2 c ???? i 2 c ? ????? srw 1 ?? i 2 c ?? ? i 2 c ?? srw h 0 ??? i 2 c ? ?????
ht46ru26/HT46CU26 rev. 1.00 4 9 2008-06-12 ? ? ? ? ???? i 2 c ??????????? ?????????????? (stop) ? ??? i 2 c ???? 6 (haas) ?????? srw ???? srw ??? hcr htx srw ??? hcr ? htx ? ?? ? ???????????? 8 ????? ??????? ( 0 ) ???????? ? sda ??? stop ?? i 2 c ??? hdr ? ??? hdr ?? hdr ?? s c l s d a s t a r t b i t d a t a s t a b l e d a t a a l l o w c h a n g e s t o p b i t ?? ? ??? ?? ? ? ? ? ???? 9 ???? (txak) ? (rxak) ??? i 2 c ?????? hdr ?? sda ?? ????? d a t a 1 0 1 0 0 1 00 1 0 0 1 0 1 0 1 1 s = s t a r t ( 1 b i t ) s a = s l a v e a d d r e s s ( 7 b i t s ) s r = s r w b i t ( 1 b i t ) m = s l a v e d e v i c e s e n d a c k n o w l e d g e b i t ( 1 b i t ) d = d a t a ( 8 b i t s ) a = a c k ( r x a k b i t f o r t r a n s m i t t e r , t x a k b i t f o r r e c e i v e r 1 b i t ) p = s t o p ( 1 b i t ) s c l s t a r t s d a s r w a c k a c k s t o p s c l s d a s s a s r m d a d a s s a s r m d a d a p s l a v e a d d r e s s i 2 c ???? ? ? ?????? ????
ht46ru26/HT46CU26 rev. 1.00 5 0 2008-06-12 spi ? ? ? ? h t46ru26/HT46CU26 ? spi ?? spi ????? ?? spi ?????? / ????? ????????? i/o ?? spi ??? d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 s b d r ( r e c e i v e d d a t a r e g i s t e r ) m u x s d o b u f f e r m u x m l s d a t a b u s m u x m a s t e r o r s l a v e s d i s d o i n t e r n a l b a u d r a t e c l o c k s c k c l o c k p o l a r i t y c 2c 1c 0 s b e n i n t e r n a l b u s y f l a g s b e n w r i t e s b d r w c o l f l a g t r f a n d , s t a r t s b e n e n a n d w r i t e s b d r w r i t e s b d r e n a b l e / d i s a b l e s c s e n m a s t e r o r s l a v e c s e n s b e n a n d , s t a r t a n d , s t a r t spi spispi spi ?? ???? ?? ? ?? ?? ?? ? ?? 4 ?? sdi ? sdo sck ? ? scs ???????? sbcr ??? csen ? csen ? scs ?? scs ??????? spi ? s c k s c s s d i s d o d 1 / d 6 d 7 / d 0 d 6 / d 1 d 5 / d 2 d 4 / d 3 d 3 / d 4 d 2 / d 5 d 1 / d 6 d 0 / d 7 d 7 / d 0 d 6 / d 1 d 5 / d 2 d 4 / d 3 d 3 / d 4 d 2 / d 5 d 0 / d 7 s b e n = c s e n = 1 s b e n = 1 , c s e n = 0 ( i f p u l l - h i g h e d ) s c k w r i t e t o s b d r ( m a s t e r ) spi sp i spi spi ? ?? ?
ht46ru26/HT46CU26 rev. 1.00 5 1 2008-06-12 spi ? ? ? spi ?? sbcr ???? sbdr ??? sbcr ? spi ??????? scdr ???? ? sbdr ??????? sbcr ????? cks m1 m0 sben mls csen wcol trf 0 1 1 0 0 0 0 @5 ? ? s bdr ???? txrx ? sbdr ? ???? s b c r r e g i s t e r b 7 b 0 c k s m 1 m 0 s b e n m l s c s e n w c o l t r f t r a n s m i t t / r e c e i v e f l a g 0 : n o t c o m p l e t e 1 : t r a n s m i s s i o n / r e c e p t i o n c o m p l e t e w r i t e c o l l i s i o n b i t 0 : c o l l i s i o n f r e e 1 : c o l l i s i o n d e t e c t e d s e l e c t i o n s i g n a l e n a b l e / d i s a b l e b i t 0 : s c s f l o a t i n g 1 : e n a b l e m s b / l s b f i r s t b i t 0 : l s b s h i f t f i r s t 1 : m s b s h i f t f i r s t s e r i a l b u s e n a b l e / d i s a b l e b i t 0 : d i s a b l e 1 : e n a b l e d e p e n d e n t u p o n c s e n b i t m a s t e r / s l a v e / b a u d r a t e b i t s m a s t e r , b a u d r a t e : f s i o m a s t e r , b a u d r a t e : f s i o / 4 m a s t e r , b a u d r a t e : f s i o / 1 6 s l a v e m o d e m 1 0 0 1 1 m 0 0 1 0 1 c l o c k s o u r c e s e l e c t b i t 0 : f s i o = f s y s / 4 1 : f s i o = f s y s s p i spi spi spi ???? ???? ???? ???? spi ? ?? ? / ? ?? ? ? spi csen=1 = 0 ? ? sbd r txrx ?? sbdr txrx ?? / ????? trf ? 1 ??? ? sck ?? ? csen ? txrx ???? sdi ?? ? spi sck sdi sdo ? ??? spi / ????????????????? sbcr ? csen spi ???? csen=1 scs ?? spi ?? ? spi ?? csen=0 spi ???????? spi ?? sbcr ? sben ?? sdi ???? sdo ?? ?? sck ????????????? sck ? ?? sben ???? scs sdi sdo sck ????
ht46ru26/HT46CU26 rev. 1.00 5 2 2008-06-12 ???????? s b dr ??????? ?????????????? ? / ????? ?? 1 ? sbcr ?? cks ??? 2 sbcr ?? m0 m1 ?????? 00 01 10 ??? 3 csen mls ????????? 4 sbcr ?? sben ? spi ?? 5 ? sbd r? txrx clk???? sck scs ? 6 sdi ? txrx ??txrx sbdr 6 wcolwcol=1??? 5 wcol=0 7 7 trf ? sbi ? 8 sbdr ??? 9 trf 10 ? 5 ?? 1 ??? cks 2 ? m0 m1 ? 00 ??? cks 3 csen mls ???????? 4 sbcr ?? sben ? spi ?? 5 ? sbd r? txrx ???? scs ?? 6 sdi ? txrx ??txrx sbdr 6 wcolwcol=1??? 5 wcol=0 7 7 trf ? sbi
ht46ru26/HT46CU26 rev. 1.00 5 3 2008-06-12 8 sbdr ?? 9 trf 10 ? 5 spi ?? ???? ?? ????? spi ?????? sbcr ? ? wcol ?????? sck ??????? ?? sbcr ? csen ??? csen ? csen ? spi ??? sbcr ? wcol ?? wcol ??? ?????? sbcr ?? wcol ??? ?? wcol ??????? wcol ???????? ? ? ? ? ?????????????? trf ?
ht46ru26/HT46CU26 rev. 1.00 5 4 2008-06-12 ? ? ? ? uart uart uart uart ht46ru26/ HT46CU26 ????????????? ? uart ???? 8 9 ?????? ?? uart ? uart ??????? uart ? uart uartuart uart uart 1? ??? 8 9 ? ? 1 2 ?? 8 ???? ???? ??????=1 ??? fifo ? ?? ?? ? ?? uart uartuart uart ? ?? ? uart ?? tx rx ???? tx uart ?? ucr2 txen ? uart ??? tx ??? io ? rx uart ? ??? ucr2 ? rxen ? uart ??? rx ??? io ? uarten txen rxen ? io ???? tx rx ? rx ?? ??? ???? ?? ?? uart ??? txr ????? ???????? tx ?txr ????? ????????? ???????? rx ? ?????? rxr ?rxr ???? ?????????? ???? txr ??? rxr?????? txr/rxr ?
ht46ru26/HT46CU26 rev. 1.00 5 5 2008-06-12 t x r r e g i s t e r r x r r e g i s t e r m s b l s b t r a n s m i t t e r s h i f t r e g i s t e r t x p i n m s b l s b r e c e i v e r s h i f t r e g i s t e r r x p i n b a u d r a t e g e n e r a t o r c l k c l k b u f f e r m c u d a t a b u s uart ?? ??? ??? ??? uart uar tuart uart ???? ???? ???? ???? 5 ? uart ?? usrucr1 ucr2 ? uart? brg ? ????? txr/rxr usr usr usr usr ? ?? ? ? usr uart ????? uart ???usr ??? usr ?? u s r r e g i s t e r b 7 r i d l e o e r r n f p e r r b 0 r x i f t i d l e t x i f t r a n s m i t d a t a r e g i s t e r e m p t y 1 : c h a r a c t e r t r a n s f e r r e d t o t r a n s m i t s h i f t r e g i s t e r 0 : c h a r a c t e r n o t t r a n s f e r r e d t o t r a n s m i t s h i f t r e g i s t e r t r a n s m i s s i o n i d l e 1 : n o t r a n s m i s s i o n i n p r o g r e s s 0 : t r a n s m i s s i o n i n p r o g r e s s r e c e i v e r x r r e g i s t e r s t a t u s 1 : r x r r e g i s t e r h a s a v a i l a b l e d a t a 0 : r x r r e g i s t e r i s e m p t y r e c e i v e r s t a t u s 1 : r e c e i v e r i s i d l e 0 : d a t a b e i n g r e c e i v e d o v e r r u n e r r o r 1 : o v e r r u n e r r o r d e t e c t e d 0 : n o o v e r r u n e r r o r d e t e c t e d f r a m i n g e r r o r f l a g 1 : f r a m i n g e r r o r d e t e c t e d 0 : n o f r a m i n g e r r o r n o i s e f l a g 1 : n o i s e d e t e c t e d 0 : n o n o i s e d e t e c t e d p a r i t y e r r o r f l a g 1 : p a r i t y e r r o r d e t e c t e d 0 : n o p a r i t y e r r o r d e t e c t e d f e r r txif txif ?????? txif=0????? txif=1? txr ???? usr ? txr ? txif txen ??txif ?? tidle tidle ??? tidle=0? txif=1 ??? ??tidle tidle=1tx ?? usr ? txr ? tidle ???????tidle rxif rxif ?????? rxif=0 rxr ??? rxif=1 rxr ? ????? rxr ? ucr2 ? rie=1?? ??????? nfferr perr ??? usr ?? rxr ? rxr ???? rxif ?
ht46ru26/HT46CU26 rev. 1.00 5 6 2008-06-12 ridle r i dle ???? ridle=0?? ridle=1? ???????ridle uart oerr oerr ????? oerr=0? oerr=1 ????????? usr ?? rxr ??? ferr free ?? free=0?? free=1??? ?? usr ?? rxr ? nf nf ?? nf=0??? nf=1 uart ?? ? rxif ???????? usr ?? rxr ??? perr perr ?? perr=0?? perr=1?? ??????? usr ?? rxr ? ucr uc r ucr ucr1 11 1 ? ?? ? ucr 1 ucr2 uart ?? uart ? uart ??? ??????? ucr1 ?? u c r 1 r e g i s t e r b 7 s t o p s p r t b n o u a r t e n b 0 t x b r k r x 8 t x 8 t r a n s m i t d a t a b i t 8 ( w r i t e o n l y ) r e c e i v e d a t a b i t 8 ( r e a d o n l y ) t r a n s m i t b r e a k c h a r a c t e r 1 : t r a n s m i t b r e a k c h a r a c t e r s 0 : n o b r e a k c h a r a c t e r s d e f i n e s t h e n u m b e r o f s t o p b i t s 1 : t w o s t o p b i t s 0 : o n e s t o p b i t p a r i t y t y p e b i t 1 : o d d p a r i t y f o r p a r i t y g e n e r a t o r 0 : e v e n p a r i t y f o r p a r i t y g e n e r a t o r p a r i t y e n a b l e b i t 1 : p a r i t y f u n c t i o n e n a b l e d 0 : p a r i t y f u n c t i o n d i s a b l e d n u m b e r o f d a t a t r a n s f e r b i t s 1 : 9 - b i t d a t a t r a n s f e r 0 : 8 - b i t d a t a t r a n s f e r u a r t e n a b l e b i t 1 : e n a b l e u a r t , t x & r x p i n s a s u a r t p i n s 0 : d i s a b l e u a r t , t x & r x p i n s a s i / o p o r t p i n s p r e n tx8 ??? 9 ??tx8 ?? 9 bno ? 8 9 rx8 ??? 9 ??rx8 ?? 9 bno ? 8 9 txbrk txbrk ??? txbrk=0????tx txbrk=1 ???? 0 txbrk ?????? ? 13 ???? txbrk
ht46ru26/HT46CU26 rev. 1.00 5 7 2008-06-12 stops 1 2 ???? stops=1?? stop=0? ??? prt ?? prt=1? prt=0?? pren ??? pren=1?? pren=0? bno ??? 8 9 ? bno=1? 9 bno=0? 8 ? 9 ??rx8 tx8 ????? 9 uarten ? uart ? uarten=0 uart ?rx tx ?/? uarten=1 uart ??tx rx ? txen rxen ? uart ??? ?????????txenrxentxbrk rxifoerrferrperr nf ? tidletxif ridle ucr1ucr2 brg ? ?? uart ? uarten ?????????? uart ????1 ucr uc r ucr ucr2 22 2 ? ?? ? ucr 2 uart ?????????? uart ? ??????????? ucr2 ?? u c r 2 r e g i s t e r b 7 w a k e a d d e n r x e n t x e n b 0 r i e t i i e t e i e t r a n s m i t t e r e m p t y i n t e r r u p t e n a b l e 1 : t x i f i n t e r r u p t r e q u e s t e n a b l e 0 : t x i f i n t e r r u p t r e q u e s t d i s a b l e t r a n s m i t t e r i d l e i n t e r r u p t e n a b l e 1 : t i d l e i n t e r r u p t r e q u e s t e n a b l e 0 : t i d l e i n t e r r u p t r e q u e s t d i s a b l e r e c e i v e r i n t e r r u p t e n a b l e 1 : r x i f i n t e r r u p t r e q u e s t e n a b l e 0 : r x i f i n t e r r u p t r e q u e s t d i s a b l e d e f i n e s t h e r x w a k e u p e n a b l e 1 : r x w a k e u p e n a b l e ( f a l l i n g e d g e ) 0 : r x w a k e u p d i s a b l e a d d r e s s d e t e c t m o d e 1 : e n a b l e 0 : d i s a b l e h i g h b a u d r a t e s e l e c t b i t 1 : h i g h s p e e d 0 : l o w s p e e d r e c e i v e r e n a b l e b i t 1 : r e c e i v e r e n a b l e 0 : r e c e i v e r d i s a b l e t r a n s m i t t e r e n a b l e b i t 1 : t r a n s m i t t e r e n a b l e 0 : t r a n s m i t t e r d i s a b l e b r g h teie ???????? teie=1?? txif uart ? teie=0uart ? txif ??
ht46ru26/HT46CU26 rev. 1.00 5 8 2008-06-12 tiie ????? tiie=1? tidle uart ? tiie=0uart ? tidle ?? rie ??? rie=1?? oerr rxif uart ? rie=0uart ? oerr rxif ?? wake ?????? wake=1 ???rx ???? ? wake=0 ???rx ?????? adden ????? adden=1?????? 8 bon=0 ? rx7 ? 9 bon=1 ? rx8 ????????? ??? 1????? 0?? ??? brgh ???? brg ?? uart ?? brgh=1? ?? brgh=0??? rxen ?? rxen=0????? rx ??/?? rxen=1 uarten=1???rx ? uart ??? rxen ???? rx ???? ? txen ?? txen=0???? ? tx ???/?? txen=1 uarten=1???tx ? uart ??? txen ???? tx ??? ? ? ? ? ? uart ???????? 8 brg ? ucr2 ?? 2 brgh ?brgh ???????? ????brg ?? n ???? 0 255 ucr2 brgh 0 1 )1(64 + n f s y s )1(16 + n f s y s ??????? b r gh ?????? brg ? brg ???????? brg ?? n
ht46ru26/HT46CU26 rev. 1.00 5 9 2008-06-12 ?? ?? ?? ?? ??? 8m brgh=0?? 9600 brg ?? n?? ?? br = )1(64 + n f s y s ? ?? n = 1 64 ? br f s y s n = 1 64 9600 8000000 ? = 12.0208 ? ??? 12 brg ??? br = 9615 ) 1 12(64 8000000 = + %16.0 9600 96009615 = ? brgh ??????? brgh=0 f s y s =8mhz f sys =7.159mhz f sys =4mhz f sys =3.579545mhz k/bps brg kbaud error brg kbaud error brg kbaud error brg kbaud error 0.3 - - - - - - 207 0.300 0.00 185 0.300 0.00 1.2 103 1.202 0.16 92 1.203 0.23 51 1.202 0.16 46 1.19 -0.83 2.4 51 2.404 0.16 46 2.38 -0.83 25 2.404 0.16 22 2.432 1.32 4.8 25 4.807 0.16 22 4.863 1.32 12 4.808 0.16 11 4.661 -2.9 9.6 12 9.615 0.16 11 9.322 -2.9 6 8.929 -6.99 5 9.321 -2.9 19.2 6 17.857 -6.99 5 18.64 -2.9 2 20.83 8.51 2 18.643 -2.9 38.4 2 41.667 8.51 2 37.29 -2.9 1 - - 1 - - 57.6 1 62.5 8.51 1 55.93 -2.9 0 62.5 8.51 0 55.93 -2.9 115.2 0 125 8.51 0 111.86 -2.9 - - - - - - brgh=0 ? ? ??? ??? ??? brgh=1 f s y s =8mhz f sys =7.159mhz f sys =4mhz f sys =3.579545mhz k/bps brg kbaud error brg kbaud error brg kbaud error brg kbaud error 0.3 - - - - - - - - - - - - 1.2 - - - - - - 207 1.202 0.16 185 1.203 0.23 2.4 207 2.404 0.16 185 2.405 0.23 103 2.404 0.16 92 2.406 0.23 4.8 103 4.808 0.16 92 4.811 0.23 51 4.808 0.16 46 4.76 -0.83 9.6 51 9.615 0.16 46 9.520 -0.832 25 9.615 0.16 22 9.727 1.32 19.2 25 19.231 0.16 22 19.454 1.32 12 19.231 0.16 11 18.643 -2.9 38.4 12 38.462 0.16 11 37.287 -2.9 6 35.714 -6.99 5 37.286 -2.9 57.6 8 55.556 -3.55 7 55.93 -2.9 3 62.5 8.51 3 55.930 -2.9 115.2 3 125 8.51 3 111.86 -2.9 1 125 8.51 1 111.86 -2.9 250 1 250 0 - - - 0 250 0 - - - brgh=1 ? ? ??? ??? ???
ht46ru26/HT46CU26 rev. 1.00 6 0 2008-06-12 uart u a rtuart uart uart ???????? nrz 1 ?8 9 ? 1 2 ????????? ?????? 8 ?? 1 ??? 8n1 ?????????? ucr1 ? bnoprtpren stops ???????? 8 ????? ? uart ????????? ????? uart ??? uart ucr1 ? uarten ?????? tx ? rx ? ??uarten ???? uartentxen rxen ? ? tx rx ?? uart ????????????? ??tx ?????? uarten ? tx rx????? uart ? ??????????txenrxentxbrk rxifoerrferrperr nf ? tidletxif ridle ucr1ucr2 brg ? ?? uart ? uarten ???????? ?? uart ????1 ????? ?????A??????? ucr1 ???bno 8 9 prt ?? prten ??? stops ? 1 2 ????? ?????????? 1 ???? ? ?? ? ? ? ?? ? ? ?? ???? ?? 8 8 8 8 ?? ???? ?? 1 8 0 0 1 1 7 0 1 1 1 7 1 1 0 1 9 9 9 9 ?? ???? ?? 1 9 0 0 1 1 8 0 1 1 1 8 1 1 0 1 ???? ??? ???? ???? ?? 8 9 ???? s t a r t b i t b i t 0 b i t 1 b i t 2 b i t 3 b i t 4 b i t 5 b i t 6 b i t 7 s t o p b i t n e x t s t a r t b i t p a r i t y b i t 8 - b i t d a t a f o r m a t s t a r t b i t b i t 0 b i t 1 b i t 2 b i t 3 b i t 4 b i t 5 b i t 6 b i t 7 s t o p b i t n e x t s t a r t b i t p a r i t y b i t 9 - b i t d a t a f o r m a t b i t 8
ht46ru26/HT46CU26 rev. 1.00 6 1 2008-06-12 uart u a rtuart uart ucr1 ? bno ????? bno=1 ??? 9 9 ? ucr1 ? tx8 ??? tsr ??? txr ? ??? txr ?????? tsr ????? ? tsr ??? txr ????? tsr ??? ??????? txen=1 ??? txr ??????? txr ? txen ?? ?? tsr ??? txr ???? tsr ? ?? txen ????? tx ??? ? uart ???????? tx ????txr ??????^??? 9 ?? msb ? ucr1 ? tx8 ?2? --? bnoprtpren stops ??????? -- brg ???? -- txen ??? tx ? uart ?????? --? usr ???? txr ??? txif ? --????? ?? txif=0 ??? txr ??2 txif 1. ? usr ? 2. txr ? ?? txif uart ? txif=1 txr ???? ?? teie=1txif ??? ?? txr ??? txr ?????? ???? txr ????? tsr ? ??? txif ??????????tidle ?2 tidle 1. ? usr ? 2. txr ? txif tidle ?? ? txbrk=1?????????13*nn=12 ?? 0 ? ??????? txbrk ?? txbrk 0 ?? ??????? 13 ? txbrk ??? ????? txbrk 0?????? ?????????????
ht46ru26/HT46CU26 rev. 1.00 6 2 2008-06-12 uart u a rtuart uart uart ? 8 9 ??? bno=1?? 9 ? msb ? ucr1 ? rx8 ??? rsrrx ???? 16 ??11 rx ???? ????? rsr ?? rxr ?rx ????? ?????rsr ?????? ? uart ????? rx ?rxr ???? ??^rxr ???? fifo ????? ???????????? rxr ???? ???? ??2? --? bnoprtpren stops ??????? -- brg ???? -- rxen ??? rx ? uart ?????? ????? ???? -- rxr ?????usr ? rxif ? -- rie=1? rsr ?? rxr ??? --??????????? ?2 rxif 1. ? usr ? 2. ? rxr ? ? uart ???????? bno stops ?????? ? 13 ??? bno stops ?????rxif ferr rxr ? 0? ridle ?????? ??????? ferr ????? ?????????,?? 0 ?? ferr ??? ????????????????? ?? ridle uart ???? --?? ferr --rxr ?? -- oerr nf perr ridle rxif ? ?? uart ?????? usr ??? ridle ?? ??????? ridle ?
ht46ru26/HT46CU26 rev. 1.00 6 3 2008-06-12 u s r ??? rxif ??? rie=1 ?? rsr ? rxr ??????? ? ? ? ? uart ???????? ??oerr ? rxr ???? fifo ????????? ?????? rxr ?? ???? --usr ? oerr --rxr ???? --rsr ???? -- rie=1? ? usr ?? rxr ? oerr ? 0 ?nf ? ???????? -- rxif ?usr ? nf --? rsr ?? rxr ? --???? rxif ? ? usr ??? rxr ? nf ? ???ferr ? ???? 0usr ? ferr ? 2 ??2 ???? ferr?????? ???perr ? ??? usr ? perr ??? pren=1 ??????????????? ferr perr ?????????? ? ?? ? uart ???????? ???? rx ??? uart ?????? ?????? ucr2 ??? usr ????????? ???? uart ? ??? uart ?????? ucr2 ? adden=1?? ?? uart ?rx ??? uart ????? uxr2 wake rie ?rx ????????rx ????? 1024 ???? ???usr ?????? 0 1?? ?????? 0 uart ?????? 0? uart ? ?intc1 ? euri /? uart ??? uart ?
ht46ru26/HT46CU26 rev. 1.00 6 4 2008-06-12 u s r r e g i s t e r t r a n s m i t t e r e m p t y f l a g t x i f t r a n s m i t t e r i d l e f l a g t i d l e r e c e i v e r d a t a a v a i l a b l e r x i f r e c e i v e r o v e r r u n f l a g o e r r r x 7 i f b n o = 0 r x 8 i f b n o = 1 a d d e n 0 1 0 1 r x p i n w a k e - u p w a k e 0 1 u c r 2 r e g i s t e r t e i e t i i e r i e u a r t i n t e r r u p t r e q u e s t f l a g u r f e u r i i n t c 1 r e g i s t e r e m i i n t c 0 r e g i s t e r u c r 2 r e g i s t e r 0 1 0 1 0 1 o r u a rt ?? ??? ?? ??? ? ?? ??? ??? ucr2 ? adden ??? adden ???? ? rxif adden ????? 1 ??? euri emi ??????? 9 bno=1 8 bno=0?? ??????? 1 ?? adden ???? ? rxif??????????? ????????????? adden addenadden adden ? 9 99 9 bno=1 bno=1bno=1 bno=1 ? 8 88 8 bno=0 bno=0bno=0 bno=0 uart uartuart uart ? 0 0 1 0 1 1 adden ??? ?? ? ??? ??? uart ? mcu ???uart ??????????? uart ?mcu ?????? tx ?????? mcu ??? ?????????usrucr1 ucr2/??brg ? ??? uart rx ???? ucr2 ? wake ??????? uart uarten rxen ?? rie rx ???? ??????? 1024 ???????rx ? ? ?? uart ??? emi uart euri ? ????????????? 1024 ??? ?? uart ?
ht46ru26/HT46CU26 rev. 1.00 6 5 2008-06-12 ????? ???N? / uart i 2 c spi ?? ? ??? a/d ???????????? int ? ?? ???? ?? ?? intc0 intc1 mfic ???? ??????????? ?? i n t c 0 r e g i s t e r m a s t e r i n t e r r u p t g l o b a l e n a b l e 1 : g l o b a l e n a b l e 0 : g l o b a l d i s a b l e f o r t e s t m o d e u s e o n l y . m u s t b e w r i t t e n a s " 0 " o t h e r w i s e m a y r e s u l t i n u n p r e d i c t a b l e o p e r a t i o n b 7 b 0 e t 0 i e e i , e a d i e s i i e m i t i m e r / e v e n t c o u n t e r 0 i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e t i m e r / e v e n t c o u n t e r 0 i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e e i f , a d f , s i f t 0 f e t 1 i t 1 f e x t e r n a l i n t e r r u p t e n a b l e , a / d c o n v e r t e r i n t e r r u p t , s p i i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e e x t e r n a l i n t e r r u p t , a / d c o n v e r t e r i n t e r r u p t , s p i i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e t i m e r / e v e n t c o u n t e r 1 i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e t i m e r / e v e n t c o u n t e r 1 i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e ?? ? ?? ??? ??? 0
ht46ru26/HT46CU26 rev. 1.00 6 6 2008-06-12 i n t c 1 r e g i s t e r u a r t b u s i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e i 2 c o r s p i i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e m u l t i - f u n c t i o n i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " u a r t b u s i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e i 2 c o r s p i i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e m u l t i - f u n c t i o n i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e n o t i m p l e m e n t e d , r e a d a s " 0 " b 7 b 0 e m f i e h i , e s i i e u r i u r f h i f , s i f m f f ?? ??? ??? ??? 1 m f i c r e g i s t e r t i m e r / e v e n t c o u n t e r 2 i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e t i m e b a s e i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e r e a l t i m e c l o c k i n t e r r u p t e n a b l e 1 : e n a b l e 0 : d i s a b l e n o t i m p l e m e n t e d , r e a d a s " 0 " t i m e r / e v e n t c o u n t e r 2 i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e t i m e b a s e i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e r e a l t i m e c l o c k i n t e r r u p t r e q u e s t f l a g 1 : a c t i v e 0 : i n a c t i v e n o t i m p l e m e n t e d , r e a d a s " 0 " b 7 b 0 e r t i e t b i e t 2 i t 2 ft b f r t f ??? ? ??? ???? ????
ht46ru26/HT46CU26 rev. 1.00 6 7 2008-06-12 ? ? ? ??? / a/d ??? uart spi i 2 c ????????? pc ?????????????? reti ????? ???????? a u t o m a t i c a l l y c l e a r e d b y i s r e x c e p t f o r t b f , r t f a n d t 2 f m a n u a l l y c l e a r e d b y s o f t w a r e a u t o m a t i c a l l y d i s a b l e d b y i s r c a n b e e n a b l e d m a n u a l l y p r i o r i t y h i g h i n t e r r u p t p o l l i n g e e i e a d i e s i i t i m e r / e v e n t c o u n t e r 0 i n t e r r u p t r e q u e s t f l a g t 0 f e t 0 i t i m e r / e v e n t c o u n t e r 1 i n t e r r u p t r e q u e s t f l a g t 1 f e t 1 i u a r t b u s i n t e r r u p t r e q u e s t f l a g u r f e u r i e x t e r n a l i n t e r r u p t r e q u e s t f l a g e i f a / d c o n v e r t e r i n t e r r u p t r e q u e s t f l a g a d f s p i i n t e r r u p t r e q u e s t f l a g s i f m u l t i - f u n c t i o n i n t e r r u p t r e q u e s t f l a g m f f e m f i e m i l o w t i m e r / e v e n t c o u n t e r 2 i n t e r r u p t r e q u e s t f l a g t 2 f e t b i r e a l t i m e c l o c k i n t e r r u p t r e q u e s t f l a g r t f e r t i t i m e b a s e i n t e r r u p t r e q u e s t f l a g t b f e t 2 i i 2 c i n t e r r u p t r e q u e s t f l a g h i f s p i i n t e r r u p t r e q u e s t f l a g s i f e h i e s i i ?? ? ???? ??? ????? ? emi ????? ???????????? ??????? emi ???? ???????? sp ????? ???
ht46ru26/HT46CU26 rev. 1.00 6 8 2008-06-12 ? ?? ? ? t2 ??????? t2 ???????? emi ? 04h 14h ?????????? ? ?? ? ? ?? ? ? ? a /d ? spi 1 04h ? / 0 2 0 8 h ? / 1 3 0 c h uart 4 10h i 2 c s pi 5 14h ?? ? / 2 ??? ? 6 18h ???????????????? ? i ntc0 intc1 ????????? ? ?? ? ???? emi ?? eei ??? intc0 ? eif ????? int ????? eif ?? 1 ?? pa5 ????? intc ??? ? 1 ???????? pac.5 pa5 ???? ?????? 04h ???????? ? eif ? emi ????????? ???????????
ht46ru26/HT46CU26 rev. 1.00 6 9 2008-06-12 ? ? ? ? / ? ?? / ?? emi ?????/0 ?et0i?intc0 ??2 ?/1 ?et1i ?intc0 ??3 ?/2?et2i ?mfic ??0 ?????/ ??/???E????tf ?intc ? 5 ?/0 ?t0f ?intc0 ??5 ?/1 ?t1f ? intc0 ??6 ?/2 ?t2f ?mfic??4??/2 ?????/2???intc1?emfi ????????/2?intc1 ??6??? mff?? ???????????/ ?????/0 ???08h ???/1 ? ??0ch ?????/2 ???018h ???? /2????????? ?tft0f ?emi ?????2? emi ????mff??t2f?? ??? ? ?? ? ? ??? intc0 ?? emi ??? etbi mfic ? ? 1 ???? intc1 ? tbf mfic ?? 5 ? ???????????? ? intc1 ? emfi ??????? intc1 ?? 6 ??? mff ?? ????????????? ?????????018h ?????? ????emi ????mff ??t2f???????? ??????????? f s f s ??? ? ????????? 2 12 / f s ~2 15 / f s f s ?? ????? rtc ????? ?? f s ????? ?? rtc ?????? f s ?? ?? rtc ??? c l o c k s o u r c e c o n f i g u r a t i o n o p t i o n f s y s / 4 w d t o s c i l l a t o r r t c o s c i l l a t o r 8 - s t a g e p r e s c a l e r ( 1 / 2 ~ 1 / 2 5 6 ) f s t b 0 ~ t b 2 ? 1 6 t i m e b a s e i n t e r r u p t ( f s / 3 2 ~ f s / 4 0 9 6 ) t i m e b a s e c l o c k s o u r c e s e l e c t ? ? ? ?
ht46ru26/HT46CU26 rev. 1.00 7 0 2008-06-12 ??? ? ? ???? ??? ? ????? intc0 ?? emi ??? erti mfic ? ? 2 ???? intc1 ? rtf mfic ?? 6 ? ???? ?????????????? ???????? 018h ???????? ???? intc1 ? emfi ???????? ? intc1 ?? 6 ??? mff ?? ??emi ???? mff ?? t2f ???????? rtc ? rtc ??? rtc ????????? rtc ??? ?? f s f s ??? ? rtcc ?????? rtc ?? 2 8 / f s ~2 15 / f s f s ?????? ? rtc ??????? f s ???? ? ?? rtc ?????? f s ???? rtc ?? ? ?? rtc ???????????? f s ?? rtc c ? rt2 rt1 rt0 ?????????? 2 8 ~2 15 ?? rtc ??? rtcc ??? ??????? 1024 ??? 32768hz rtc ? ?????????? rtc ???? 2 8 2 9 2 10 rtc ??? ? ????? 1024 ???? rtc ?? f s s o u r c e c o n f i g u r a t i o n o p t i o n f s y s / 4 w d t o s c i l l a t o r r t c o s c i l l a t o r d i v i d e b y 2 8 ~ 2 1 5 ( s e t b y r t c c r e g i s t e r s ) f s r t c i n t e r r u p t 2 8 / f s ~ 2 1 5 / f s r t 2 ~ r t 0 r tc a/d ? ? ? ? ? a/d ??? emi ?? eadi ? a/d ? intc1 ? adf ?? a/d ????? a/d ???? 04h ???? ad ????? adf ? emi ?????????? ???
ht46ru26/HT46CU26 rev. 1.00 7 1 2008-06-12 uart ??uart????euri ???intc1 ??uart ??????urfintc1 ?4uart ??? ??uart ?euri ??uart ???uart ? ?010h ???uart ???urf ?emi ? ? uart ?????txif????rxif? (tidle)?oerr??????uart ???usr uart ? ucr2 ???????uart ?? i 2 c ? ? i 2 c ?? e m i ?? ehi ??? intc1 ? ? i 2 c ? hi f intc1 ? 5 ???? i 2 c ? ????? spi ????? i 2 c ??? ? i 2 c ??????????? 014h ???? i 2 c ? ??? hif ? emi ?????? ??????? spi ? ? spi ?? emi ?? ehi ??? intc0/intc1 ?? i 2 c ? si f intc0/ intc1 ? 4/5 ???? i 2 c ? ????? spi ??????? ????? 014h 04h ???? spi ???? sif ? emi ???????????? ? ? ??? ? ? ???????????? ????????? / 2 ? emfi intc1 ? 2 ? ?????? mff intc1 ? 6 ????? ?????? spi ???? ?????/ 2 ????????? 018h ??? spi ???? mff ? emi ???? ??????????????/ 2 ?? ??? ? ? ? ? ?????????? intc0 intc1 ?????????? ???? ?call ? ? ?????? ?????????? ?call ? ? ??? ???? ??????
ht46ru26/HT46CU26 rev. 1.00 7 2 2008-06-12 ??????????? ?????? ?? ?? ?? ?? ?????? ??????? ????????????????? ????y???????????? ?????????????? ?y???????????? ????? res ????? ????????????????????? ????????2??? ? ????? lvr ?????????? res ???? ? ? ???????  ?y ?????????????? ?y????? / ??? / ????y??????????? ???? rc ??????? rc ????? res ?? rc rc ? ??? res ?????????????? ??? res ??????? t rstd ??? ? sst ??? system start-up timer r e s v d d s s t t i m e - o u t i n t e r n a l r e s e t 0 . 9 v d d t r s t d ?y?? ?y ?? ?y?? ?y??
ht46ru26/HT46CU26 rev. 1.00 7 3 2008-06-12 ?? v d d res ? ?k res v ss ? ?? ????? res ?? r e s v d d v s s 0 . 1 m f 1 0 0 k w ? ? ? ? r e s 0 . 1 m f 1 0 0 k w v d d v s s 0 . 0 1 m f 1 0 k w ? ?? ? ? ??? ??? ????????? ???? ????? holtek ?? ha0075s  res ? res ??? ( ? ) ??????? ????????? r e s s s t t i m e - o u t i n t e r n a l r e s e t 0 . 9 v d d 0 . 4 v d d t r s t d res ??? ?? ??? ???  ?? ? ??????????? ?????? 0.9v~v lvr ??? lv r ?? lvr ? lvr ?? 0.9v~v lvr ??????? t lvr ???? t lv r ? lv r ?? ? v lvr ????? l v r s s t t i m e - o u t i n t e r n a l r e s e t t r s t d ???? ?? ?? ???? ????
ht46ru26/HT46CU26 rev. 1.00 7 4 2008-06-12  ?? ??? to ? 1 ???? res ? w d t t i m e - o u t s s t t i m e - o u t i n t e r n a l r e s e t t r s t d ???? ???? ???? ????  ??? ? ????????? 0 to ? 1 ??????? t sst ??? w d t t i m e - o u t s s t t i m e - o u t t s s t ????? ?? ??? ????? ????? ??? ??? ??? ??? ??????????? pdf to ??? ???????? to pdf ? 0 0 ? res u u ? res l vr 1 u ? wdt 1 1 ? ? wdt ? u ?? ? ??y??? ???? ? ?? ? ? ? ?? ?? w dt ?? ? / ? / ?? ?? ? / ??? / i/o ??? ?? ? ???
ht46ru26/HT46CU26 rev. 1.00 7 5 2008-06-12 ???????????????? ? ????????????? ? ?? ? ? ( ?y ?y?y ?y ) res l vr ? wdt ( ) wdt ( ?? ???? ??? ?? ? ) mp0 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu mp1 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu bp 0 0 00 0000 0000 0000 0000 0000 00u0 00uu acc x x xx xxxx uuuu uuuu uuuu uuuu uuuu uuuu tblp x x xx xxxx uuuu uuuu uuuu uuuu uuuu uuuu tblh x x xx xxxx uuuu uuuu uuuu uuuu uuuu uuuu rtcc - - -0 -111 ---0 -111 ---0 -111 --uu uuuu status - - 00 xxxx --uu uuuu --lu uuuu --11 uuuu intc0 - 0 00 0000 -000 0000 -000 0000 -uuu uuuu tmr0h x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu tmr0l x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu tmr0c 0 0 -0 1000 00-0 1000 00-0 1000 uuuu uuuu tmr1h x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu tmr1l x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu tmr1c 0 0 -0 1--- 00-0 1--- 00-0 1--- uu-u u--- pa 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pac 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pb 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pbc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pcc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pd 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pdc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pwm0 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu pwm1 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu pwm2 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu pwm3 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu intc1 - 0 00 -000 -000 -000 -000 -000 -uuu -uuu tbhp x x xx xxxx uuuu uuuu uuuu uuuu uuuu uuuu hadr x x xx xxx- xxxx xxx- xxxx xxx- uuuu uuu- hcr 0 - -0 0--- 0?-0 0--- 0?-0 0--- u--u u--- hsr 1 0 0- -0-1 100- -0-1 100- -0-1 uuuu uuuu hdr x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu adrl x x xx ---- xxxx ---- xxxx ---- uuuu ---- adrh x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu adcr 0 1 00 0000 0100 0000 0100 0000 uuuu uuuu acsr 1 - -- --00 1--- --00 1--- --00 u--- --uu pf 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pfc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pg 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu pgc 1 1 11 1111 1111 1111 1111 1111 uuuu uuuu tmr2 x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu tmr2c 0 0 -0 1000 00-0 1000 00-0 1000 uu-u uuuu mfic - 0 00 -000 -000 -000 -000 -000 -uuu -uuu usr 0 0 00 1011 0000 1011 0000 1011 uuuu uuuu ucr1 00 00 00x0 0000 00x0 0000 00x0 uuuu uuuu ucr2 00 00 0000 0000 0000 0000 0000 uuuu uuuu txr/rxr xx xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu brg xx xx xxxx xxxx xxxx xxxx xxxx uuuu xxxx sbcr 01 10 0000 0110 0000 0110 0000 uuuu uuuu
ht46ru26/HT46CU26 rev. 1.00 7 6 2008-06-12 sbdr x x xx xxxx xxxx xxxx xxxx xxxx uuuu uuuu ? u ? x ?? - ?? ???????????????? ????????? ????? ? / ? ? rc ? / ? rc ????? ??? holtek ?? ha0075s ? ?? ?/ // /? ?? ? ???????? osc1 osc2 ? ???????????????? c1 c2 ???? / ?????k r p ?? ? ?? o s c 1 o s c 2 r f t o i n t e r n a l c i r c u i t s i n t e r n a l o s c i l l a t o r c i r c u i t c 1 c 2 c a c b r p n o t e : 1 . r p i s n o r m a l l y n o t r e q u i r e d . 2 . a l t h o u g h n o t s h o w n o s c 1 / o s c 2 p i n s h a v e a p a r a s i t i c c a p a c i t a n c e o f a r o u n d 7 p f . ? ? ? / ? ?? ? ? ca cb r f ? @5v 2 5 ca c b rf 11pf~13pf 1 3 pf~15pf 470k w ??? ??? ??? ???
ht46ru26/HT46CU26 rev. 1.00 7 7 2008-06-12 c 1 c 2 ? ? c 1 c2 cl 8mhz t b d tbd tbd 4mhz t b d tbd tbd 1mhz t b d tbd tbd ? 1 c 1 c 2 ?? 2 cl ????? ?? ?? ?? ?? ? c1 c2 ? ?? c 1 c2 3.58mhz tbd tbd 1mhz tbd tbd 455khz tbd tbd ? c1 c 2 ? ? ? ? ??? ?? ?? ?? ? ? ? ? rc ?? rc ???? osc1 vdd ???? 24k 1m ? ?k osc1 ?????? 4 ?? osc2 ???? ?? osc2 ? nmos ? rc ???? ????? vdd ???????????? ?????? r osc ??? r c ?? v dd ?? ??? r osc ?t??? ???? ?? o s c 1 o s c 2 f s y s / 4 n m o s o p e n d r a i n 4 7 0 p f v d d r o s c ? ? ? rc
ht46ru26/HT46CU26 rev. 1.00 7 8 2008-06-12 ? ? ? rtc rtcrtc rtc ?????????????????????? / ?? 32768hz ????? osc3 osc4 ? 32768hz ? ???????? c1 c2 ????? ??k r p ??? ????? 32768hz ?????? o s c 3 o s c 4 r f t o i n t e r n a l c i r c u i t s c 1 c 2 c a c b r p n o t e : 1 . r p i s n o r m a l l y n o t r e q u i r e d . 2 . a l t h o u g h n o t s h o w n o s c 3 / o s c 4 p i n s h a v e a p a r a s i t i c c a p a c i t a n c e o f a r o u n d 7 p f . 3 2 7 6 8 h z ? ? ? rc + ? ?? ? rtc ? ca cb r f ? @5v 2 5 ca cb rf tbd tbd tbd rtc ??? ??? ??? ??? rtc c 1 c 2 ? ? c 1 c2 cl 32768hz tbd tbd tbd ? 1 c 1 c 2 ?? 2 cl ????? 32768hz ?? ?? ?? ?? ????? 32 768hz 32768hz ??????? ?? ??? rtc ??? mode ? qosc ? ??????? qosc 0 ? rtc ??????? ? 2 ?? qosc ? 1 ?? qosc ?? rtc ????? ?? ?? ?? ?? wdt ???? 5v ???? 65 s ? ????????????? wdt ???? ???? wdt ?????
ht46ru26/HT46CU26 rev. 1.00 7 9 2008-06-12 ????? ??? ? ? ????? ????? ??? ?? ???? ??? holtek ?????????????? ?????????????? ??????????????? ? ? ?? ??? ???? ?? ??????? halt ????  ???????? halt ??  ram ??????  wdt ?? wdt wdt ??????? ??  / ????  status ? pdf ?? to ? ? ?? ? ???????? halt ????? ??? / ???????????? ?????????????? cmos ?? ???????? ? ?? halt ???????  ?  pa ?  ??  wdt ? res ???????? wdt ?? ??????????? to pdf ????? ????? pdf ?? halt ?? pdf ? to ????????????? ? pa ??????? pa ?????? halt ? ? ???????????? halt ?????????? ??????????????? 1 ???? ????? 1024 ?????? ???????????? 1024 ?? ??
ht46ru26/HT46CU26 rev. 1.00 8 0 2008-06-12 ?? ?? ?? ?? ??????????? ???? ?? wdt ???? wdt ??????? ????? wdt f sys /4 rtc ?? wdt ??? ???? ???????? / ? wdt ????? ???? wdt ??? wdt ????????? 5v ??? 65 s ?????? vdd ????? ?? 2 14 /f s ~ 2 21 /f s ? f sys /4 ???????????????? wd t ?????????????????? ?? wdt ? 1 6 8 - s t a g e p r e s c a l e r 8 - t o - 1 m u x w d t t i m e - o u t p s c 2 ~ p s c 0 o p t i o n s e l e c t f s y s / 4 w d t o s c r t c o s c 9 - b i t c o u n t e r f s ?? ? ? ?? ?? ???? wd t ????? to ???? ??????? wdt ? sp ? wdt ???? ( res ?? ) ????? halt ? ???????????????? clr wdt ???? clr wdt1 ? clr wdt2 ??????? clr wdt wdt ?????? clr wdt1 ? clr wdt2 ??? wdt ?????? clr wdt1 ? wdt ?? ??? clr wdt2 ? wdt ?? clr wdt2 ???? ? clr wdt1 ???? ? ? ? ? ???????? ??? 2 12 / fs 2 15 / fs ? ???? (tbf mfic ? 5 mff intc1 ? 6 ) ? ???????? 018h ? tbf ?? ?? ??? ?????? ??? ??? (rtc) ????????? fs/2 8 fs/2 15 ??? ? rt2 rt1 rt0 rtcc ? 2 1 0 09h ? rtc ? (rtf mfic ? 6 mff intc1 ? 6 ) ??????? 018h ? rtf ?? ??
ht46ru26/HT46CU26 rev. 1.00 8 1 2008-06-12 ?? ?? ?? ?? ?????? h t-ide ???? ??????????????? ?? ? ? ? ? ? / ? ?? ? 1 p a 0~pa7 ? / ?? 2 p a 0~pa7 ? ? / ? 3 pb 0 ~pb7 ? ? / ? 4 pc 0 ~pc7 ? ? / ? 5 pd 0 ~pd7 ? ? / ? 6 pf 0 ~pf4 ? ? / ? 7 pg 0 ~pg7 ? ? / ? ? ?? ? 8 ??? rc 9 f s y s ?? osc rt c 10 f s ?? rtc wdt f sys /4 ?? ? ??? ?? 11 ? ? 2 12 /f s 2 13 /f s 2 14 /f s 2 1 5 /f s pfd ? ? ? ? 12 p a 3 / pfd 13 pf d ? ???? / 0 ?? / 1 pwm ? ? ? ? 14 pd 0 ~pd3 pwm0~pwm3 ? 15 pw m ? ? 6+2 7+1 ?? ?? ???? ?? 16 ?? / ? 17 ??? 1 2 18 ? ?? 2 12 /f s ~2 13 /f s 2 13 /f s ~2 14 /f s 2 14 /f s ~2 15 /f s 2 15 /f s ~2 16 /f s ? ?? ? 19 ? 04h int 1 4 h i 2 c 04h int 1 4 h spi 04h a/d 14h i 2 c 04h a /d 14h spi 04h spi 14h i 2 c i 2 c ? ?? ? 20 i 2 c ??? / ? spi ? ? ? ? 21 s pi ?? / ? 22 s pi wcol ?? / ? 23 s pi csen ?? / ? 24 spi cpol ?? / ? lvr ? ? ? ? 25 lv r ?? / ?
ht46ru26/HT46CU26 rev. 1.00 8 2 2008-06-12 ?? ?? ?? ?? h t 4 6 r u 2 6 / h t 4 6 c u 2 6 ~ p b 0 / a n 0 p b 7 / a n 7 p a 0 ~ p a 2 p a 3 / p f d p a 4 p a 5 / i n t p a 6 / s d a p a 7 / s c l p c 2 ~ p c 5 p d 4 ~ p d 7 p f 0 ~ p f 7 ~ p d 0 / p w m 0 p d 3 / p w m 3 t m r 0 t m r 1 p g 0 ~ p g 7 p c 0 / t x p c 1 / r x p c 6 / o s c 3 p c 7 / o s c 4 t m r 2 o s c 1 o s c 2 o s c c i r c u i t r e s 0 . 1 m f 1 0 0 k w v d d v s s 0 . 1 m f v d d r e s e t c i r c u i t o s c 3 o s c 4 3 2 7 6 8 h z c i r c u i t s e e o s c i l l a t o r s e c t i o n s e e o s c i l l a t o r s e c t i o n
ht46ru26/HT46CU26 rev. 1.00 8 3 2008-06-12 ?? ?? ?? ?? ???????????????? ????????????? ??? ??????? ? ?? ? ???????????????? ?????? 8mhz ??????? 0.5 s ?? ? 1 s ???????? jmp call ret reti ??????? pcl ?????? ? pcl ????????? clr pcl mov pcl, a ?????????????? ?? ?? ???? ?? ????????? mov ?????? ?? ( ?? ) ??????????? ????? ??????????????? ????? 255 ? 0 ??????? inc inca dec deca ??????????? ? ? ? ? ?? and or xor cpl ???????? ??????????? ???? rr rl rrc rlc ??? ?????????????????? ?????????? ???? ???? ???? ???? ???? jmp ????? call ????? ?????????????? ret ??? call ???? jmp ??????? call ???????????? ?????????????? ???????
ht46ru26/HT46CU26 rev. 1.00 8 4 2008-06-12 ? ??????????? ?????? set [m].i clr [m].i ???? ????? 8 ????? - ? - ??? ???????????? ??????????????? ???????? ?????? halt ?????? ?????????
ht46ru26/HT46CU26 rev. 1.00 8 5 2008-06-12 ??? ?? ? ??? ??? ???????? x m ?? a ? i 0~7 addr ? ? ? ? ? ? ?? ? ? ?? ? ?? ? ??? ?? add a ,[m] acc ?? a cc 1 z,c,ac,ov addm a ,[m] acc ??? 1 ? z ,c ,ac,ov add a ,x a cc ? acc 1 z,c,ac,ov adc a ,[m] acc ??? a cc 1 z,c,ac,ov adcm a ,[m] acc ???? 1 ? z, c ,ac,ov sub a ,x a cc acc 1 z,c,ac,ov sub a ,[m] acc ? a cc 1 z,c,ac,ov subm a ,[m] acc ?? 1 ? z ,c ,ac,ov sbc a ,[m] acc ??? a cc 1 z,c,ac,ov sbcm a ,[m] acc ??? 1 ? z, c ,ac,ov daa [m] ? acc ??? ? 1 ? c ? ? ? and a ,[m] acc ??? a cc 1 z or a ,[m] acc ?? a cc 1 z xor a ,[m] acc ?? a cc 1 z andm a ,[m] acc ???? 1 ? z orm a ,[m] acc ??? 1 ? z xorm a ,[m] acc ??? 1 ? z and a ,x a cc ?? acc 1 z or a ,x acc ? acc 1 z xor a ,x a cc ? acc 1 z cpl [m] ??? 1 ? z cpla [m] ?? acc 1 z ?? ???? ?? inca [m] ? acc 1 z inc [m] ?? 1 ? z deca [m] ? acc 1 z dec [m] ?? 1 ? z
ht46ru26/HT46CU26 rev. 1.00 8 6 2008-06-12 ? ? ? ? ?? ? ? ?? ? ?? ? ??? ?? rra [m] ?? acc 1 rr [m] ??? 1 ? rrca [m] ?? acc 1 c rrc [m] ??? 1 ? c rla [m] ?? acc 1 rl [m] ??? 1 ? rlca [m] ?? acc 1 c rlc [m] ??? 1 ? c ? ? ? mov a ,[m] ? a c c 1 mov [ m],a a cc ? 1 ? mov a ,x acc 1 clr [m].i ? 1 ? set [m].i ? 1 ? ? ? ? ? jmp a ddr ? 2 sz [m] ????? 1 ? sza [m] ? a c c ???? 1 ? sz [m].i ?? i ? ??? 1 ? snz [ m].i ?? i ???? 1 ? siz [m] ????? 1 ? sdz [m] ?????? 1 ? siza [m] ? a c c ?? ?? 1 ? sdza [m] ?? a c c ?? ?? 1 ? call a ddr 2 ret ?? 2 ret a ,x ???? acc 2 reti ? 2 tabrdc [m] ? ?? rom ?? tblh 2 ? tabrdl [m] ? ? rom ?? tblh 2 ? ? ?? ? nop ? 1 clr [m] ? 1 ? set [m] ? 1 ? clr w dt ?? 1 to,pdf clr w dt1 ??? 1 to,pdf clr w dt2 ??? 1 to,pdf swap [m] ?????? 1 ? swapa [m] ????? a c c 1 halt ??? 1 to,pdf ? 1 ???????? 2 ?????? 2 ??? pcl ?? 2 ? 3 ? clr wdt1 clr wdt2 ?? to pdf ????? clr wdt1 clr wdt2 ? to pdf ??? to pdf ???
ht46ru26/HT46CU26 rev. 1.00 8 7 2008-06-12 ?? ?? ?? ?? adc a, [m] add data memory and carry to the accumulator ? ???????? ? acc  acc+[m]+c ?? ov z ac c adcm a, [m] add the accumulator and carry to the accumulator ? ?????????? ? [m]  acc+[m]+c ?? ov z ac c add a, [m] add data memory to the accumulator ? ?????? ? acc  acc+[m] ?? ov z ac c add a, x add immediate data to the accumulator ? ???? ? acc  acc+x ?? ov z ac c addm a, [m] add the accumulator to the data memory ? ??????? ? [m]  acc+[m] ?? ov z ac c and a, [m] logical and accumulator with data memory ? ???????? ? acc  acc ?and? [m] ?? z and a, x logical and immediate data to the accumulator ? ?????? ? acc  acc ?and? x ?? z andm a, [m] logical and data memory with the accumulator ? ???????? ? [m]  acc ?and? [m] ?? z
ht46ru26/HT46CU26 rev. 1.00 8 8 2008-06-12 call addr su b routine call ? ???????? 1 ????? ????????? ?? 2 ? ? stack  program counter+1 program counter  addr ?? clr [m] clear data memory ? ??? ? [m]  00h ?? clr [m] . i clear bit of data memory ? ?? i ? ? [m].i  0 ?? clr wdt clear watchdog timer ? wdt ?? pdf ??? to ? ? wdt  00h pdf & to  0 ?? to pdf clr wdt1 preclear watchdog timer ? pdf to ? 0 clr wdt2 ?? wdt ? ? clr wdt1 ?? clr wdt2 ? pdf to ???? ? wdt  00h pdf & to  0 ?? to pdf clr wdt2 preclear watchdog timer ? pdf to ? 0 clr wdt1 ?? wdt ? ? clr wdt2 ?? clr wdt1 ? pdf to ???? ? wdt  00h pdf & to  0 ?? to pdf cpl [m] complement data memory ? ???????? 1 0 0 1 ? [m]  [ m ] ? ? z
ht46ru26/HT46CU26 rev. 1.00 8 9 2008-06-12 cpla [m] c o mplement data memory ? ???????? 1 0 0 1 ? ????? ? acc  [ m ] ? ? z daa [m] decimal-adjust accumulator for addition ? ??? bcd ?????? 9 ac=1 ? bcd ???? 6 ????? 9 c=1 ? bcd ???? 6 bcd ???? ?? 00h 06h 60h 66h ??????? ? c ?????? bcd ?? 100 ??? ?? [m]  acc+00h [m]  acc+06h [m]  acc+60h [m]  acc+66h ?? c dec [m] decrement data memory ? ??? 1 ? [m]  [m]-1 ?? z deca [m] decrement data memory and place result in the accumulator ? ??? 1 ??????? ? acc  [m]-1 ?? z halt enter power down mode ? ???????? ram ?????? wdt ??h 0 ?? pdf 1 wdt ? to 0 ? pdf  1 to  0 ?? to pdf inc [m] increment data memory ? ??? 1 ? [m]  [m]+1 ?? z inca [m] increment data memory and place result in the accumulator ? ??? 1 ?????? ? acc  [m]+1 ?? z
ht46ru26/HT46CU26 rev. 1.00 9 0 2008-06-12 jmp addr d ir ectly jump ? ????????? ???????? 2 ?? ? pc  addr ?? mov a, [m] move data memory to the accumulator ? ????? ? acc  [m] ?? mov a, x move immediate data to the accumulator ? 8 ? ? acc  x ?? mov [m], a move the accumulator data to memory ? ????? ? [m]  acc ?? nop no operation ? ????? ? pc  pc+1 ?? or a, [m] logical or accumulator with data memory ? ????????? ? acc  acc ?or? [m] ?? z or a, x logical or immediate data to the accumulator ? ??????? ? acc  acc ?or? x ?? z orm a, [m] logical or data memory with accumulator ? ????????? ? [m]  acc ?or? [m] ?? z ret return from subroutine ? ?????????? ? pc  stack ??
ht46ru26/HT46CU26 rev. 1.00 9 1 2008-06-12 r e t a, x return and place immediate data in the accumulator ? ??????????? ? ? pc  stack acc  x ?? reti return from interrupt ? ??????? emi ?? emi ? ??? reti ?????? ??? ? pc  stack emi  1 ?? rl [m] rotate data memory left ? ?? 1 ? 7 ? 0 ? [m].(i+1)  [m].i (i=0~6) [m].0  [m].7 ?? rla [m] rotate data memory left and place result in the accumulator ? ?? 1 ? 7 ? 0 ??? ???? ? acc.(i+1)  [m].i (i=0~6) acc.0  [m].7 ?? rlc [m] rotate data memory left through carry ? ???? 1 7 ???? ?? 0 ? [m].(i+1)  [m].i (i=0~6) [m].0  c c  [m].7 ?? c rlca [m] rotate left through carry and place result in the accumulator ? ???? 1 7 ???? ?? 0 , ???????? ? acc.(i+1)  [m].i (i=0~6) acc.0  c c  [m].7 ?? c
ht46ru26/HT46CU26 rev. 1.00 9 2 2008-06-12 rr [m] r o tate data memory right ? ??? 1 ? 0 ? 7 ? [m].i  [m].(i+1) (i=0~6) [m].7  [m].0, ?? rra [m] rotate right and place result in the accumulator ? ??? 1 0 ? 7 ??? ????? ? acc.i  [m].(i+1) (i=0~6) acc.7  [m].0 ?? rrc [m] rotate data memory right through carry ? ???? 1 0 ???? ?? 7 ? [m].i  [m].(i+1) (i=0~6) [m]. 7  c c  [m].0 ?? c rrca [m] rotate right through carry and place result in the accumulator ? ???? 1 0 ???? ?? 7 , ???????? ? acc.i  [m].(i+1) (i=0~6) acc.7  c c  [m].0 ?? c sbc a,[m] subtract data memory and carry from the accumulator ? ????????? ? c ?? 0 ?? 0 c ?? 1 ? acc  ac c [m] c ? ? ov z ac c sbcm a,[m] subtract data memory and carry from the accumulator ? ????????? ? c ?? 0 ?? 0 c ?? 1 ? acc  ac c [m] c ? ? ov z ac c
ht46ru26/HT46CU26 rev. 1.00 9 3 2008-06-12 sdz [m] sk i p if decrement data memory is 0 ? ??? 1 ?? 0 ? 0 ???? ?????????? 2 ?? ? 0 ??? ? [m]  [m] -1 [m]=0 ??? ?? sdza [m] de c rement data memory and place result in acc,skip if 0 ? ??? 1 ?? 0 ? 0 ???? ???????????? ???? 2 ??? 0 ??? ? acc  [m]-1 acc=0 ??? ?? set [m] set data memory ? ????? 1 ? [m]  ffh ?? set [m]. i set bit of data memory ? ??? i ? 1 ? [m].i  1 ?? siz [m] sk i p if increment data memory is 0 ? ??? 1 ?? 0 ? 0 ??? ?????????? 2 ??? 0 ??? ? [m]  [m]+1 [m]=0 ??? ?? siza [m] inc rement data memory and place result in acc,skip if 0 ? ??? 1 ?? 0 ? 0 ????? ???????????? ????? 2 ??? 0 ?? ? ? acc  [m]+1 acc=0 ??? ?? snz [m]. i ski p if bit i of the data memory is not 0 ? ??? i ? 0 ????? ????????? 2 ??? 0 ??? ? [m].i  0 ??? ??
ht46ru26/HT46CU26 rev. 1.00 9 4 2008-06-12 su b a, [m] subtract data memory from the accumulator ? ?????????? c ?? 0 ?? 0 c ?? 1 ? acc  ac c [m] ?? ov z ac c subm a, [m] subtract data memory from the accumulator ? ????????? ? c ?? 0 ?? 0 c ?? 1 ? [m]  ac c [m] ?? ov z ac c sub a, x subtract immediate data from the accumulator ? ?????? c ?? 0 ?? 0 c ?? 1 ? acc  ac c x ?? ov z ac c swap [m] swap nibbles within the data memory ? ??? 4 ? 4 ? ? [m].3~[m].0 ? [m].7~[m].4 ? ? swapa [m] swap data memory and place result in the accumulator ? ??? 4 ? 4 ??????? ??? ? acc.3~acc.0  [m].7~[m].4 acc.7~acc.4  [m].3~[m].0 ?? sz [m] skip if data memory is 0 ? ???? 0 ? 0 ???? ?????????? 2 ??? 0 ??? ? [m] = 0, ??? ?? sza [m] move data memory to acc,skip if 0 ? ????????? 0 ? 0 ????????????? 2 ??? 0 ??? ? acc  [m] [m] = 0 ??? ??
ht46ru26/HT46CU26 rev. 1.00 9 5 2008-06-12 sz [m]. i sk i p if bit i of the data memory is 0 ? ??? i ?? 0 ? 0 ????? ???????? 2 ??? 0 ??? ? [m].i = 0 ??? ?? tabrdc [m] move the rom code(current page) to tblh and data memory ? ? tblp ?????????? tblh ? [m]  ??? tblh  ??? ?? tabrdl [m] move the rom code(last page) to tblh and data memory ? ? tblp ????????? tblh ? [m]  ??? tblh  ??? ?? xor a, [m] logical xor accumulator with data memory ? ????????? ? acc  acc ?xor? [m] ?? z xorm a, [m] logical xor data memory with accumulator ? ????????? ? [m]  acc ?xor? [m] ?? z xor a, x logical xor immediate data to the accumulator ? ?????? ? acc  acc ?xor? x ?? z
ht46ru26/HT46CU26 rev. 1.00 9 6 2008-06-12 ?? ?? ?? ?? 48- pin ssop (300mil) ? ?? ? 4 8 1 2 5 2 4 a b c d f c ' g h a e ? ?? ?? ? mil ? a 3 9 5 -- 420 b 2 9 1 -- 299 c 8 - - 12 c? 6 1 3 -- 637 d 8 5 -- 99 e - - 25 -- f 4 - - 10 g 2 5 -- 35 h 4 - - 12 0 -- 8
ht46ru26/HT46CU26 rev. 1.00 9 7 2008-06-12 5 6-pin-sop (300mil) ? ?? ? 5 6 1 a 2 9 2 8 b c d f c ' h a e g ? ?? ?? ? mil ? a 3 9 5 -- 420 b 2 9 1 -- 299 c 8 - - 12 c? 7 2 0 -- 730 d 8 9 -- 99 e - - 25 -- f 4 - - 10 g 2 5 -- 35 h 4 - - 12 0 - - 8
ht46ru26/HT46CU26 rev. 1.00 9 8 2008-06-12 ?? ?? ?? ?? ? ? ? a c b t 1 t 2 d s sop 48w ? ? ?? ? ? ?? ? (mm) a ?? 330 1 b ?? 100 0.1 c ? 13+0.5 -0.2 d 2 0.5 t1 ? 32.2+0.3 -0.2 t2 38.2 0.2
ht46ru26/HT46CU26 rev. 1.00 9 9 2008-06-12 ? ?? ? p d 1 w p 1 p 0 d e f t k 0 b 0 a 0 c ssop 48w ? ? ?? ? ? ?? ? (mm) w 32 0.3 p ? 16 0.1 e 1.75 0.1 f ? ? ( ) 14.2 0.1 d ? 2min. d1 ? ?? 1.5+0.25 p0 4 0.1 p1 ? ? ( ) 2 0.1 a0 ? 12 0.1 b0 ? 16.2 0.1 k1 ? 2.4 0.1 k2 ? 3.2 0.1 t 0.35 0.05 c 25.5
rev.1.00 100 rev. 1.00 pb ht46ru26/HT46CU26 2008-06-12 copyright ? 2008 by holtek semiconductor inc. ????????? ? ???? ??????? ???????y?? ?????????????? ??? ????????????????? ??? http://www.holtek.com.tw.


▲Up To Search▲   

 
Price & Availability of HT46CU26

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X